StartGlobal EndGlobal

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

StartGlobal EndGlobal

Post by blueznl »

using a block of var assignments without having to type global every time would be nice, or allowing a variable to be assigned and globalized at the same time

Code: Select all

StartGlobal
  a.l = 2
  b.l = 1
  c.l = 5
EndGlobal

Global d.l = 5
currently, you have to do something like:

Code: Select all

Global a.l,b.l,c.l,d.l
a.l = 2
b.l = 1
c.l = 5
d.l = 5
just a little wannahave :-)
[/code]
( 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
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

good idea
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
MLK
User
User
Posts: 57
Joined: Sat Jan 24, 2004 8:46 pm
Location: Germany

Post by MLK »

i like it since i suggest it 3 month ago :-)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

dear mlk,

on behalf of myself :-) i have to admit i overlooked your post, or at that moment i was simply not experienced enough to appreciate the depth of your insightful suggestion

i hope that this unfortunate event will not hamper the future of our cooperation to strive towards achievement of our mutual interests

yours sincerely,

:-)

(sorry man, overlooked it, in that case consider it a 'slight reminder for the developers' :-))
( 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... )
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

blueznl wrote:dear mlk,

on behalf of myself :-) i have to admit i overlooked your post, or at that moment i was simply not experienced enough to appreciate the depth of your insightful suggestion

i hope that this unfortunate event will not hamper the future of our cooperation to strive towards achievement of our mutual interests

yours sincerely,

:-)

(sorry man, overlooked it, in that case consider it a 'slight reminder for the developers' :-))
Image
MLK
User
User
Posts: 57
Joined: Sat Jan 24, 2004 8:46 pm
Location: Germany

Post by MLK »

in behalf of my english skills, i have to tell you, that there is no need to escape with babbleprattle from your false shame, because i prayed day and night for that day where a strong man will stand up and complain the global thing in the name of the hoi polloi.

love, MLK
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

and i thought *i* was a wacko :-)

(what's this thing berikco has with hammers?!?)
( 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... )
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post by Froggerprogger »

I would prefer something like:

Code: Select all

Global a.l = 34, b.f = 3.14, blubb.s, bla.s, x.l = 13*(a+b), y.l = @blubb
rather than StartGlobal:EndGlobal.
(But better StartGlobal:EndGlobal than nothing)

pleeeeaaasssee.

It cannot be too hard to implement, but would be soooo nice. :P

btw: Berikco seems to be a carpenter ?
%1>>1+1*1/1-1!1|1&1<<$1=1
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

lol, lol, lol!

These posts! This thread has to be nominated for the humour award!


And yes, blocks of things (comments, globals, etc) would be nice.
Post Reply