I just want to make sure before going into a fruitless search. Are pointers supported by simba?
I just want to make sure before going into a fruitless search. Are pointers supported by simba?
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.
Last edited by masterBB; 03-26-2012 at 03:13 PM.
Working on: Tithe Farmer
Simba Code:type
PItem = ^TItem;
TItem = record
value: Integer;
next: PItem;
end;
By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.
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.
Last edited by masterBB; 03-26-2012 at 05:36 PM.
Working on: Tithe Farmer
There are currently 1 users browsing this thread. (0 members and 1 guests)