Please make Syntax of Protected conform to Define

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Please make Syntax of Protected conform to Define

Post by Kaeru Gaman »

Code: Select all

  Protected.i Font1, Font2, Font3
and

Code: Select all

Global.i Font1, Font2, Font3
produce Syntax Errors, while

Code: Select all

Define.i Font1, Font2, Font3
does not.

would be nice if the shorter version would be avaliable for Protected and Global, too.
oh... and have a nice day.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Don't forget Static :)
PB 4.30

Code: Select all

onErrorGoto(?Fred)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

-1

Euh... are we still allowed to use +1 -1 to indicate if we like something or not?

(I don't like this syntax change by the way, I just prefer to use -1 as opposed to typing ' I don't like this syntax change by the way '...)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Post by mback2k »

I don't think it would break anything, it could just be an additional way to declare things, just like with Define.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

I think it should be added for consistancy. The previous syntax would still apply and could be used as well if that was preferred.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Good idea.
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

I think, this is the first request ever, which is really useful for everyone!! :D
Best request!
PureBasic for Windows
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Marco2007 wrote:this is the first request ever
No.
Marco2007 wrote:which is really useful for everyone
Yes. I'm looking forward to this feature! :o
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

AND51 wrote:No
Sorry, the first request since I´ve joined :)
PureBasic for Windows
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

I already posted the same request time ago :o
...at least i was dreaming...
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Fred wrote:Good idea.
that sounds like music! thank you.
Psychophanta wrote:I already posted the same request time ago :o
...at least i was dreaming...
if so, I'm sorry.
I did a search if I could find such a topic, and there was none... at least on the first pages.
oh... and have a nice day.
User avatar
Rescator
Addict
Addict
Posts: 1769
Joined: Sat Feb 19, 2005 5:05 pm
Location: Norway

Post by Rescator »

Yeah I gotta say I like this idea.

If I define only a few variables I usually mix'em up, using .i, .l etc.
But when a lot of variables are defined I tend to use multiple defines,
thus splitting the defining of strings on one line and integers on one.
User avatar
Blue
Addict
Addict
Posts: 964
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: Please make Syntax of Protected conform to Define

Post by Blue »

Kaeru Gaman wrote: ...
would be nice if the shorter version would be avaliable for Protected and Global, too.
I want to add my backing to this request.
So, definitely +1.

Although i remember that this very same suggestion was made quite a while ago.
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
mrjiles
Enthusiast
Enthusiast
Posts: 238
Joined: Fri Aug 18, 2006 7:21 pm
Location: IL

Post by mrjiles »

Don't forget about the Declare statement!
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

Declare? for Procedures?
... I think that is something completely different... *BOOOM*
oh... and have a nice day.
Post Reply