[Implemented] allow "Protected.l x,y,z"

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

[Implemented] allow "Protected.l x,y,z"

Post by #NULL »

what about making this possible?

Code: Select all

Protected.l len,pos
or even

Code: Select all

Global.l x,y,z
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Post by dhouston »

+1

I was planning to request this but you beat me to it. It would enhance readability.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Sorry, but at least I am absolutely against that kind of syntax. :?
Types should be only as postfix of variables. I even don't like much the current syntax of : Define.<type> when variables are written after it;
i mean it should be: Define.<type> or Define a.b,b.f ...etc. but never Define.<type> a,b,c ...etc.

BTW, the manual wrote:
Syntax
Define.<type> [<variable> [= <expression>], <variable> [= <expression>], ...]
and should be better like:
Syntax
Define[.<type>] | [<variable> [= <expression>], <variable> [= <expression>], ...]
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
dhouston
Enthusiast
Enthusiast
Posts: 430
Joined: Tue Aug 21, 2007 2:44 pm
Location: USA (Cincinnati)
Contact:

Post by dhouston »

Psychophanta wrote:Sorry, but at least I am absolutely against that kind of syntax. :?
Well, if it's implemented, we'll tie you down and tickle you until you agree to use it. :lol:
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

:lol:
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

:P
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply