Mercurial Hosting > luan
comparison src/luan/lib/BasicLib.java @ 10:8217d8485715
fix string conversion
git-svn-id: https://luan-java.googlecode.com/svn/trunk@11 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 22 Nov 2012 04:37:10 +0000 |
parents | 24fd6381caca |
children | 9cea1aea5eef |
comparison
equal
deleted
inserted
replaced
9:600676034a1a | 10:8217d8485715 |
---|---|
22 | 22 |
23 public static void print(Object... args) { | 23 public static void print(Object... args) { |
24 for( int i=0; i<args.length; i++ ) { | 24 for( int i=0; i<args.length; i++ ) { |
25 if( i > 0 ) | 25 if( i > 0 ) |
26 System.out.print('\t'); | 26 System.out.print('\t'); |
27 System.out.print( Lua.checkString(args[i]) ); | 27 System.out.print( Lua.toString(args[i]) ); |
28 } | 28 } |
29 System.out.println(); | 29 System.out.println(); |
30 } | 30 } |
31 | 31 |
32 public static String type(Object obj) { | 32 public static String type(Object obj) { |