QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: dcromley on April 15, 2022, 11:34:00 am

Title: An introduction; A note on Wiki
Post by: dcromley on April 15, 2022, 11:34:00 am
This is my first post -- it is meant to be constructive -- there is so much here; so much history; a bottomless pit.
I haven't got the hang of here vs. discord vs. tapatalk.

I noticed that the Wiki for "SUB" does not have the "static" option.
I hope it is helpful to point that out.

I met a nice guy on PM.
Looking forward to more looking and participating.
Title: Re: An introduction; A note on Wiki
Post by: bplus on April 15, 2022, 12:13:01 pm
Welcome @dcromley

Are you talking about static for the whole sub or all the variables in it?
Was this something in earlier QB?

I know you can have Static variables in a Sub but I don't think that's what you mean.

Title: Re: An introduction; A note on Wiki
Post by: SMcNeill on April 15, 2022, 12:42:18 pm
Welcome @dcromley

Are you talking about static for the whole sub or all the variables in it?
Was this something in earlier QB?

I know you can have Static variables in a Sub but I don't think that's what you mean.

There's no mention of STATIC for the SUB itself:  https://wiki.qb64.org/wiki/SUB

Code: QB64: [Select]
  1. For i = 1 To 5
  2.     foo
  3.  
  4.     x = x + 1
  5.     Print x

Such as the above...
Title: Re: An introduction; A note on Wiki
Post by: dcromley on April 15, 2022, 12:52:30 pm
Yes -- Steve's got it.
And what a time to join (Steve's QB64 Bible is a joy!).
Title: Re: An introduction; A note on Wiki
Post by: SMcNeill on April 15, 2022, 01:01:59 pm
Always glad to hear when someone enjoys any of my stuff.  Many thanks!  ;)
Title: Re: An introduction; A note on Wiki
Post by: bplus on April 15, 2022, 01:12:37 pm
So what does static do like that? Make all variables static?
Title: Re: An introduction; A note on Wiki
Post by: SMcNeill on April 15, 2022, 01:26:05 pm
Makes the whole sub static.
Title: Re: An introduction; A note on Wiki
Post by: CharlieJV on April 15, 2022, 02:26:01 pm
Welcome to the "QB64-forumhood", @dcromley !