Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 423:1eafb11a150d
remove Luan.repr()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 16:30:28 -0600 |
parents | af82b266fe89 |
children | 23a93c118042 |
comparison
equal
deleted
inserted
replaced
422:af82b266fe89 | 423:1eafb11a150d |
---|---|
181 | 181 |
182 public static long assert_long(LuanState luan,long v) throws LuanException { | 182 public static long assert_long(LuanState luan,long v) throws LuanException { |
183 return v; | 183 return v; |
184 } | 184 } |
185 | 185 |
186 public static String repr(LuanState luan,Object v) throws LuanException { | |
187 return luan.repr(v); | |
188 } | |
189 | |
190 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { | 186 public static LuanFunction range(LuanState luan,final double from,final double to,Double stepV) throws LuanException { |
191 final double step = stepV==null ? 1.0 : stepV; | 187 final double step = stepV==null ? 1.0 : stepV; |
192 if( step == 0.0 ) | 188 if( step == 0.0 ) |
193 throw luan.exception("bad argument #3 (step may not be zero)"); | 189 throw luan.exception("bad argument #3 (step may not be zero)"); |
194 return new LuanFunction() { | 190 return new LuanFunction() { |