Please allow more than one dimension for Structure fields

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Please allow more than one dimension for Structure fields

Post by Psychophanta »

For example:

Code: Select all

Structure Estat
  omega.f[10]
  duration.f[2,8,8]
  turncompleted.b
EndStructure
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Couldn't you do:

Code: Select all


Structure Two
 One.l[2]
 Two.l[6]
EndStructure

Structure One
 Dimensions.Two[8]
EndStructure

~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Killswitch, thanks, but sorry, i know how to do those things.
That is not what is requested. 8)
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

No problem, 'twas just a suggestion.
~I see one problem with your reasoning: the fact is thats not a chicken~
Philippe-felixer76
User
User
Posts: 57
Joined: Mon Dec 18, 2006 2:02 pm
Location: Holland

Make PB easy'er for porting C headers

Post by Philippe-felixer76 »

:P
SCRJ
User
User
Posts: 93
Joined: Sun Jan 15, 2006 1:36 pm

Post by SCRJ »

Would be nice :D
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

I agree...

sure it's not that big problem to do the multiplication of dimensions yourself...
but it would be nice and even no big problem if the compiler does it...
oh... and have a nice day.
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

Good idea.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Post Reply