Author Topic: im back, people!  (Read 2695 times)

0 Members and 1 Guest are viewing this topic.

Offline codevsb12

  • Newbie
  • Posts: 23
    • View Profile
im back, people!
« 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.  

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: im back, people!
« Reply #1 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
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: im back, people!
« Reply #2 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
Granted after becoming radioactive I only have a half-life!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: im back, people!
« Reply #3 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
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/