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 Misc > Re: QBASIC colo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 1374 of 1488
Post > Topic >>

Re: QBASIC color numbers

by ArarghMail711NOSPAM@[EMAIL PROTECTED] Nov 11, 2007 at 10:15 PM

On Sun, 11 Nov 2007 20:52:10 -0600, david.williams@[EMAIL PROTECTED]
 (David
Williams) wrote:

<snip>

>Of course, it is easy to make BASIC pass parameters by value by writing 
>them as arithmetic expressions, rather than single variables: 
>  
>CALL Routine (X + 0) 
>  
>Even if Routine changes the value of its input parameter, the value of 
>X in the calling routine is unaltered. I don't think I have ever done 
>this in practice, but I can see that it might sometimes be useful. 

But, that method generates a bunch of extra code.  :-)  And, it is
still a pass by reference, just of a temp var, instead of X.
-- 
ArarghMail711 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.
 




 7 Posts in Topic:
Re: QBASIC color numbers
david.williams@[EMAIL PRO  2007-11-11 20:52:10 
Re: QBASIC color numbers
ArarghMail711NOSPAM@[EMAI  2007-11-11 22:15:09 
Re: QBASIC color numbers
"news@[EMAIL PROTECT  2007-11-12 01:35:15 
Re: QBASIC color numbers
Adam <no@[EMAIL PROTEC  2007-11-12 19:48:58 
Re: QBASIC color numbers
"Judson McClendon&qu  2007-11-12 07:45:01 
Re: QBASIC color numbers
Derek <derekrss@[EMAIL  2007-11-12 20:46:03 
Re: QBASIC color numbers
"Judson McClendon&qu  2007-11-13 02:05:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 6 20:39:41 CDT 2008.