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

Re: QBASIC color numbers

by winston19842005 <bjjlyates@[EMAIL PROTECTED] > Nov 13, 2007 at 08:20 AM

On 11/12/07 10:34 AM, in article 1194881671.877.1194840415@[EMAIL PROTECTED]
"David Williams" <david.williams@[EMAIL PROTECTED]
> wrote:

> -> 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.

Passing a pointer using VARPTR should work, shouldn't it?

I'm used to default to pass by reference, where CALL SUB((A)), the extra
parens forces by value.
 




 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 Fri Jul 25 20:28:02 CDT 2008.