Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Tue May 10, 2005 2:51 pm
Is this code well done?
Code: Select all
Structure a
b.l
*c.l
EndStructure
var.a
*var\c=2
Obviously it is not well done, because it is not the same var.a than *var.a, so why PB syntax doesn't allow var\*c=2 in order we can see in the code whether there is a pointer field or not in a structure?
Fred, maybe you can think about to add var\*c like syntax
Can you see what i mean?
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Tue May 10, 2005 3:18 pm
yes, this sounds logical. it will be done for the next major release.
blueznl
PureBasic Expert
Posts: 6166 Joined: Sat May 17, 2003 11:31 am
Contact:
Post
by blueznl » Thu Sep 29, 2005 1:33 pm
next... as in next century's?
any hopes of getting this one resolved in 4.00?
( 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 ... )
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Thu Sep 29, 2005 6:51 pm
blueznl wrote: any hopes of getting this one resolved in 4.00?
Yes, here is one hope: my hope
Justin
Addict
Posts: 948 Joined: Sat Apr 26, 2003 2:49 pm
Post
by Justin » Thu Sep 29, 2005 9:43 pm
wouldn't this break tons of existig code without introducing any feature?
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Thu Sep 29, 2005 10:51 pm
This is a inconsistency here which needs to be resolved IMHO.
MLK
User
Posts: 57 Joined: Sat Jan 24, 2004 8:46 pm
Location: Germany
Post
by MLK » Thu Sep 29, 2005 10:59 pm
since last release *pointers are allowed in structures. but using them as var\*pointer fred just forgot to implement
Dr. Dri
Enthusiast
Posts: 243 Joined: Sat Aug 23, 2003 6:45 pm
Post
by Dr. Dri » Fri Sep 30, 2005 1:22 pm
this code works, doesn't it ? why would you change PB syntax ?
Code: Select all
Structure test
variable.l
*pointer.Long
EndStructure
var.test
var\pointer = @var\variable
var\variable = 5
Debug var\pointer\l
Dri
okasvi
Enthusiast
Posts: 150 Joined: Wed Apr 27, 2005 9:41 pm
Location: Finland
Post
by okasvi » Fri Sep 30, 2005 2:18 pm
because var\*pointer is more logical and im sure Fred tries to keep syntax clear and logical
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Fri Sep 30, 2005 2:36 pm
okasvi wrote: because var\*pointer is more logical
That's the point.
And if i can do:
then why can not do:
Code: Select all
Structure test
*pointer.Long
pointer.Long
EndStructure
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Wed Jan 25, 2006 11:01 pm
To Fred:
What about this?
Fred
Administrator
Posts: 18162 Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:
Post
by Fred » Wed Jan 25, 2006 11:07 pm
After much tough, it won't be changed for now.
remi_meier
Enthusiast
Posts: 468 Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland
Post
by remi_meier » Thu Jan 26, 2006 7:04 pm
But when you don't change it for V4, there will be another release that will
break a lot of existing code which is surely not nice, too
Athlon64 3700+, 1024MB Ram, Radeon X1600
vanleth
User
Posts: 79 Joined: Sat Jun 28, 2003 4:39 am
Location: Denmark - Valby
Post
by vanleth » Thu Jan 26, 2006 7:08 pm
Agree with the inconsistency of the syntax in this structure/pointer subject. It has confused me before.
But I rather wait for PB4 Beta, and then take subject to discussion, since I also belive it will put down alot of ealier PB codes and I have no idea what PB4.0 brings.
Maybe others have similar suggestions to the current PB syntax consistency, so they can all be nailed down in one future release.