spl

systems programming language
git clone http://frotz.net/git/spl.git
Log | Files | Refs | README | LICENSE

1045-list.spl (183B)


      1 
      2 struct Node {
      3 	next *Node,
      4 	value i32,
      5 };
      6 
      7 fn print(node Node) {
      8 	_hexout_(node.value);
      9 }
     10 
     11 fn start() i32 {
     12 	var node Node = new(Node);
     13 	node.value = 42;
     14 	print(node);	
     15 	return 0;
     16 }