Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic General > Re: Why use Bas...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 616 of 702
Post > Topic >>

Re: Why use Basic at all? (was Re: BASIC with built-in matrix functions?)

by ArarghMail708NOSPAM@[EMAIL PROTECTED] Aug 29, 2007 at 02:38 PM

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.
 




 5 Posts in Topic:
Re: Why use Basic at all? (was Re: BASIC with built-in matrix fu
"R.Nicholson" &  2007-08-24 17:25:18 
Re: Why use Basic at all? (was Re: BASIC with built-in matrix fu
Happy Trails <nomail@[  2007-08-25 00:25:50 
Re: Why use Basic at all? (was Re: BASIC with built-in matrix fu
Troppo <troppo19@[EMAI  2007-08-25 14:18:43 
Re: Why use Basic at all? (was Re: BASIC with built-in matrix fu
"R.Nicholson" &  2007-08-29 11:06:36 
Re: Why use Basic at all? (was Re: BASIC with built-in matrix fu
ArarghMail708NOSPAM@[EMAI  2007-08-29 14:38:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 21:00:26 CST 2008.