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

Re: QBASIC color numbers

by Derek <derekrss@[EMAIL PROTECTED] > Nov 13, 2007 at 07:59 PM

On Nov 12, 8:34 am, david.willi...@[EMAIL PROTECTED]
 (David Williams) wrote:
> 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.

For a really interesting exercise, you should try programming using a
pure functional language like Lispkit Lisp, Scheme, or Haskell. This
forces you to use functions which only provide call-by-value
arguments. Call-by-reference isn't available. It's a very different
experience from BASIC programming. Nevertheless it's still possible to
do all the same stuff as BASIC with relatively simple code.

Cheers

Derek
 




 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 15:00:31 CDT 2008.