I just want to make sure before going into a fruitless search. Are pointers supported by simba?
Printable View
I just want to make sure before going into a fruitless search. Are pointers supported by simba?
Only to procedures, and only in a limited fashion.
so I believe linked lists for now is out of the question for simba usage, right? :(
srl will go full lape in the near future. Just use lape for now.
edit:
I can't seem to get a linked list working in lape as you can't create a next or previous pointer of the type node within a record. But maybe I'm doing it wrong.
Try it of type pointer then typecast the doodle out of it.
Simba Code:type
PItem = ^TItem;
TItem = record
value: Integer;
next: PItem;
end;
You are a genius.
edit:
Markus typecast I used:
Simba Code:program new;
type
Node = record
value: String;
next: pointer;
end;
var
n1,n2:Node;
begin
n1.value := 'tada';
n2.value := 'hoi';
n1.next := @n2;
writeln(Node(n1.next^).value);
end.