Code: Select all
EnableExplicit
Structure Hello
me.i
*you
EndStructure
Define p.hello
p\me = 0
p\*you = AllocateMemory(1000)
FreeMemory(p\*you)
Code: Select all
EnableExplicit
Structure Hello
me.i
*you
EndStructure
Define p.hello
p\me = 0
p\*you = AllocateMemory(1000)
FreeMemory(p\*you)
Code: Select all
EnableExplicit
Structure Hello
me.i
*you
EndStructure
Define p.hello
p\me = 0
p\you = AllocateMemory(1000)
FreeMemory(p\*you)
I remembered seeing something in the manual about this and just checked. In the PDF versions, on page 248 of the shorter version, or 276 of the full version, it mentions that the * is omitted. But yes, you're right, it seems a bit of an exception.GenRabbit wrote: Sun Nov 17, 2024 4:32 pm Thanks, in the online manual it says *ptr and ptr is two different variables, yet in structure its is the same...
Code: Select all
Structure Person
*Next.Person ; Here the ’* ’ is mandatory to declare a pointer
Name$
Age.b
EndStructure
Timo.Person\Name$ = "Timo"
Timo\Age = 25
Fred.Person\Name$ = "Fred"
Fred\Age = 25
Timo\Next = @Fred ; When using the pointer, the ’* ’ is omitted