Diff
Not logged in

Differences From Artifact [6911dbe256744186]:

To Artifact [f71ff7dc6628e423]:


78 78 t2.set(s.data, ValueLayer, v); 79 79 return t2; 80 80 }); 81 81 e.addPrimitive("{}", ValueLayer, (){ 82 82 return new Table; 83 83 }); 84 84 // IO and others 85 - e.addPrimitive("print", ValueLayer, (Value a){ writeln(a); return new IntValue(0); }); 85 + e.addPrimitive("print", ValueLayer, (Value a){ writeln(a); return a; }); 86 86 e.addPrimitive("gensym", ValueLayer, (){ return new StrValue(freshVarName()); }); 87 87 auto rand = Mt19937(unpredictableSeed); 88 88 e.addPrimitive("rand", ValueLayer, (IntValue n){ 89 89 return new IntValue( uniform(0,cast(int)n.data.toInt(),rand) ); 90 90 }); 91 91 }