Talk About Network



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 1 of 3 Topic 1375 of 1466
Post > Topic >>

Re: QBASIC color numbers

by david.williams@[EMAIL PROTECTED] (David Williams) Nov 12, 2007 at 09:34 AM

-> Yes, that's what I was trying to explain to Richard.  People who learned

-> the ANSI / ISO Standard way of doing it (by Reference) actually use 
-> and rely on that default.  People who learned on BBC and some other 
-> variants where the default is by value won't use calling by Reference 
-> as often.  Of course these are just tendencies, not hard and fast
rules. 
-> I'm sure there are some Standard users who don't use the changed 
-> parameters just as there are some BBC users who do. 
 
-> Tom Lake  
  
If the language is set up to call by reference, it's easy to write code 
that effectively calls by value, e.g.: 
  
CALL Twiddle (X + 0) 
  
If Twiddle changes the value of its input parameter, the value of X in 
the calling routine will *not* be changed. 
  
But how easy is it to do the other way around? If the language is set 
up to call by value, can we write simple code that effectively calls by 
reference? I can't think of an easy way to do it. 
  
Of course, the language may have specific commands to switch from one 
method of calling to the other, but without them, a dialect that calls 
by value can't easily be made to call by reference. 
  
                         dow




 3 Posts in Topic:
Re: QBASIC color numbers
david.williams@[EMAIL PRO  2007-11-12 09:34:31 
Re: QBASIC color numbers
winston19842005 <bjjly  2007-11-13 08:20:25 
Re: QBASIC color numbers
Derek <derekrss@[EMAIL  2007-11-13 19:59:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon May 12 9:51:04 CDT 2008.