On Mon, 2006-10-02 at 20:48 +1000, Jonathan Kelly wrote:
> //------------
> #import <flx.flxh>;
>
> struct DLL_List[T] {
> node : DLL_Node[T];
> }
>
> struct DLL_Node[T] {
> next : &DLL_List[T];
> prev : &DLL_List[T];
> this : T;
> }
>
> fun new_DLL_List[T] (n:T):&DLL_List[T] =
> {
> var x : DLL_List[T];
> return &x;
> }
>
> fun new_DLL_Node[T] (n:T):&DLL_Node[T] = {
> var x : DLL_Node[T];
> x.this = n;
> return &x;
> }
>
> var lst1 : DLL_List[int];
>
> var lst2 = new_DLL_List[int] (11);
> //------------
>
> but this gives the following error.
>
> $ flx t2/fibheap.flx
> SYSTEM FAILURE
> [C func body, vars] Can't find index 4128
Ok, that should be fixed now.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language