PDA

View Full Version : list pointer again


Nicknack
03-25-2010, 03:54 PM
am I using the new function laddr correctly? I assume this should flow:
Add(b$, 1, 2, 3, 4, 5);

&l$ = LAddr(b$);
ForEach(l$)
ShowMessage(l$);
end;

Nicknack
03-31-2010, 12:07 AM
I don't get it, both values are equal but anyway somehow not:
s$=newsprite(null);
add(l$,2,5,876);
setspritedata(s$,laddr(l$));

Showmessage("first");
r$=laddr(l$);
&n$=r$;
foreach(n$)
Showmessage(n$);
end;

Showmessage("second");
o$=spritedata(s$);
&u$=o$;
foreach(u$)
Showmessage(u$);
end;

Showmessage(o$==r$);
I don't understand also why you need a extra variable for holding laddr().

kornalius
03-31-2010, 02:05 PM
Please post this in http://bugs.arianesoft.ca

I know the list is growing. I will get to it sometime soon.