On Wed, 29 Aug 2007 11:06:36 -0700, "R.Nicholson" <rhnlogic@[EMAIL PROTECTED]
>
wrote:
<snip>
>> The big problem would occur with separately compiled routines, where
>> you lie about the parameters.
>
>Here's where interpreters have an advantage in the
>flexibility of the language. You could potentially
>allow program to redimension arrays or change the
>variable type contained during a program, if all copy
>operations were selected at runtime. JavaScript and
>Perl allow this. But some implementations of Basic
>also allow a runtime redimensioning.
Changing the size of an array is ok. Changing the number of
dimensions or element size is not. This only applies to dynamic
arrays. Static arrays, are, well, static.
>I've been wondering whether a Basic should allow its
>MAT commands:
>
>DIM a(n),b$(n),c(n)
>...
>MAT b$ = a
>MAT c = b$
>
>to do a whole vector of str$() and val() conversions
>automatically.
Doable, certainly.
--
ArarghMail708 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html
To reply by email, remove the extra stuff from the reply address.


|