Diff
Not logged in

Differences From Artifact [d6bfebbae7e5dfaf]:

To Artifact [00f787cfb5f7b260]:


56 56 // type test 57 57 e.addPrimitive("_isint", ValueLayer, 58 58 (Value v){return new IntValue(cast(IntValue)v !is null);} ); 59 59 e.addPrimitive("_isstr", ValueLayer, 60 60 (Value v){return new IntValue(cast(StrValue)v !is null);} ); 61 61 e.addPrimitive("_isfun", ValueLayer, 62 62 (Value v){return new IntValue(cast(FunValue)v !is null);} ); 63 - e.addPrimitive("_isundefined", ValueLayer, 63 + e.addPrimitive("_isbot", ValueLayer, 64 64 (Value v){return new IntValue(cast(BottomValue)v !is null);} ); 65 - e.addPrimitive("_istable", ValueLayer, 65 + e.addPrimitive("_istbl", ValueLayer, 66 66 (Value v){return new IntValue(cast(Table)v !is null);} ); 67 67 // table 68 68 e.addPrimitive(".", ValueLayer, (Table t, StrValue s){ 69 69 if( t.has(s.data, ValueLayer) ) 70 70 return t.get(s.data, ValueLayer); 71 71 throw genex!RuntimeException(text("table do not have the field ",s)); 72 72 });