Syntax error message: *(p+1)\v

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
IceSoft
Addict
Addict
Posts: 1686
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Fred wrote:Because '1' isn't a variable so you can't acces its field ;). If it's only a speed matter, we can still put PeekX() in the compiler it self to avoid an extra call..
Ony for your syntax checker ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1686
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Fred wrote:...we can still put PeekX() in the compiler it self to avoid an extra call..
PeekX()? Ok, better as nothing ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

A correct and clean way to manage sequentially stored structures is to refer data using linked lists and/or pointers inside the structures.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
IceSoft
Addict
Addict
Posts: 1686
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Psychophanta wrote:A correct and clean way to manage sequentially stored structures is to refer data using linked lists and/or pointers inside the structures.
Maybe but why should I put the screen datas on an array/linked list first?
Thats not fast and not useful in all cases.... :P
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

btw, using an extra variable pointer will hardly impact on the perfs..
User avatar
IceSoft
Addict
Addict
Posts: 1686
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Fred wrote:btw, using an extra variable pointer will hardly impact on the perfs..
Yes. Only if I have to use one extra varaible pointer.
But is is ok for now....I will see... what the PureTeam can do for this request ;-)
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Dräc
Enthusiast
Enthusiast
Posts: 150
Joined: Sat Oct 09, 2004 12:10 am
Location: Toulouse (France)
Contact:

Post by Dräc »

User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

and it's easy to use this syntax:

Code: Select all

*var.byte = @"test"

while *var\b
  debug *var\b
  *var + 1
wend
*pointers can be incremented, so there's no problem :roll:
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
User avatar
IceSoft
Addict
Addict
Posts: 1686
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Yes that is the only correct working solution.
All others are not.
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply