Mercurial Hosting > luan
diff core/src/luan/modules/IoLuan.java @ 411:23b99a5039b5
remove Luan.newTable()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 16:05:02 -0600 |
parents | cd2924a1052c |
children | b31d614343e8 |
line wrap: on
line diff
--- a/core/src/luan/modules/IoLuan.java Wed Apr 29 15:38:15 2015 -0600 +++ b/core/src/luan/modules/IoLuan.java Wed Apr 29 16:05:02 2015 -0600 @@ -85,7 +85,7 @@ } private static LuanTable writer(LuanWriter luanWriter) { - LuanTable writer = Luan.newTable(); + LuanTable writer = new LuanTable(); try { writer.put( "write", new LuanJavaFunction( LuanWriter.class.getMethod( "write", LuanState.class, new Object[0].getClass() ), luanWriter @@ -101,7 +101,7 @@ public static LuanTable binaryWriter(final OutputStream out) { - LuanTable writer = Luan.newTable(); + LuanTable writer = new LuanTable(); try { writer.put( "write", new LuanJavaFunction( OutputStream.class.getMethod( "write", new byte[0].getClass() ), out @@ -203,7 +203,7 @@ } public LuanTable table() { - LuanTable tbl = Luan.newTable(); + LuanTable tbl = new LuanTable(); try { tbl.put( "to_string", new LuanJavaFunction( LuanIn.class.getMethod( "to_string" ), this @@ -393,7 +393,7 @@ File[] files = file.listFiles(); if( files==null ) return null; - LuanTable list = Luan.newTable(); + LuanTable list = new LuanTable(); for( File f : files ) { list.add(new LuanFile(luan,f).table()); } @@ -528,7 +528,7 @@ } public static LuanTable newSchemes() { - LuanTable schemes = Luan.newTable(); + LuanTable schemes = new LuanTable(); try { add( schemes, "string", LuanState.class, String.class ); add( schemes, "file", LuanState.class, String.class );