Mercurial Hosting > luan
comparison src/luan/Luan.java @ 147:cc3a0578edac
fix Io.reverse_pickle
git-svn-id: https://luan-java.googlecode.com/svn/trunk@148 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 15 Jun 2014 15:41:36 +0000 |
parents | fcb81fa2df0d |
children | 4c0131c2b650 |
comparison
equal
deleted
inserted
replaced
146:0517a4a7fcc5 | 147:cc3a0578edac |
---|---|
133 } | 133 } |
134 | 134 |
135 public static String repr(Object obj) { | 135 public static String repr(Object obj) { |
136 if( obj == null ) | 136 if( obj == null ) |
137 return "nil"; | 137 return "nil"; |
138 if( obj instanceof Boolean ) | |
139 return Luan.toString((Boolean)obj); | |
138 if( obj instanceof Number ) | 140 if( obj instanceof Number ) |
139 return Luan.toString((Number)obj); | 141 return Luan.toString((Number)obj); |
140 if( obj instanceof String ) | 142 if( obj instanceof String ) |
141 return "\"" + stringEncode((String)obj) + "\""; | 143 return "\"" + stringEncode((String)obj) + "\""; |
142 if( obj instanceof LuanRepr ) | 144 if( obj instanceof LuanRepr ) |