QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: codevsb12 on April 19, 2020, 09:55:03 pm

Title: im back, people!
Post by: codevsb12 on April 19, 2020, 09:55:03 pm
Gotta say it in a very short amount of words:
coMMAnD nOt IMplemeNtEd
Code: QB64: [Select]
  1. scale! = 64
  2. def fnr! = rnd * scale!
  3.  
Title: Re: im back, people!
Post by: Pete on April 19, 2020, 10:54:34 pm
Yeah, Rob (Galleon) bailed on developing DEF FN, many moons ago. I simply made my own functions to replace those parts of a few of my programs.

Pete
Title: Re: im back, people!
Post by: Cobalt on April 20, 2020, 01:32:45 am
Yeah, Rob (Galleon) bailed on developing DEF FN, many moons ago. I simply made my own functions to replace those parts of a few of my programs.

think we are well past moons, more like many ages ago.

DEF FN really isn't needed

just as easy to
Code: QB64: [Select]
  1. FUNCTION r!(x)
  2.  r!=RND * x
Title: Re: im back, people!
Post by: Pete on April 20, 2020, 02:14:26 am
I agree with Cobalt. Actually, the only reason I used it in the old days is anything you could do to save memory, shorter variable names and using things like 'DYNAMIC and DEF FN made the difference between some large projects getting finished or not. Now, without those memory restrictions, DEF FN can just be converted to standard function format.

Pete