Re: Script codes

From: charlie strauss <cems_at_earthlink_dot_net>
Date: Thu Jan 05 2006 - 21:17:25 CST

-----Original Message-----

>>> Unbounded arrays or strings (includes buffers used to move data);
>>> Pointer variables; and
>>> Dynamic memory allocation and management.
>> Yikes. in addition to the prohibition on dynamically linked code, the last three items would seem to exclude Python would they not?
>Every programming language has those features (or they should). Ada
>tries really hard to prevent the first and second, but it can be done.
>The clause is just saying that your app just has to be aware of the
>dangers associated with those features and has to try to prevent abuse.

But that's not what it says I think. Take C for example. You can write C programs with 100% static allocation (no malloc calls), not pointer variables, and by implication no unbounded arrays once compiled. It can be statically linked to all libraries.

In python all variables are pointers (well actually one layer even further up: references). All memory is dynamically allocated and all native strings are unbounded (one could create an object that enforced some invariances on string length but internally the strings can change. Fixed length strings are NOT part of the language. (well techinally they are stored as immutable objects who can be rereferenced to any new immutable object whenever there are changes).

Moreover python is not only dynamically linked, and interpreted, it can even change it's linkages during run time under program controll.

What am I missing here?

OVC-discuss mailing list
= The content of this message, with the exception of any external
= quotations under fair use, are released to the Public Domain
Received on Mon Jan 8 20:24:35 2007

This archive was generated by hypermail 2.1.8 : Mon Jan 08 2007 - 20:24:39 CST