X-Git-Url: http://nitlanguage.org diff --git a/src/naive_interpreter.nit b/src/naive_interpreter.nit index a420387..77f7f0f 100644 --- a/src/naive_interpreter.nit +++ b/src/naive_interpreter.nit @@ -438,8 +438,9 @@ private class NaiveInterpreter if cache.has_key(mtype) then return cache[mtype] var res = new Array[AAttrPropdef] - for cd in mtype.collect_mclassdefs(self.mainmodule) - do + var cds = mtype.collect_mclassdefs(self.mainmodule).to_a + self.mainmodule.linearize_mclassdefs(cds) + for cd in cds do var n = self.modelbuilder.mclassdef2nclassdef[cd] for npropdef in n.n_propdefs do if npropdef isa AAttrPropdef then @@ -901,6 +902,8 @@ redef class AExternMethPropdef else if pname == "system" then var res = sys.system(recvval.to_s) return v.int_instance(res) + else if pname == "atof" then + return v.float_instance(recvval.to_f) end else if cname == "Int" then if pname == "rand" then