Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 513:0dfc01d8d42d
rename type "userdata" to "java"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 24 May 2015 12:05:00 -0600 |
parents | d96944467ffc |
children | 7cc9d4a53d3b |
comparison
equal
deleted
inserted
replaced
512:d96944467ffc | 513:0dfc01d8d42d |
---|---|
84 | 84 |
85 <p>The Luan <i>Nil</i> type is implemented as the Java <i>null</i>. The Luan <i>Boolean</i> type is implemented as the Java <i>Boolean</i> type. The Luan <i>Number</i> type is implemented as the Java <i>Number</i> type. The Luan <i>String</i> type is implemented as the Java <i>String</i> type. Actual numbers may be any subclass of the Java <i>Number</i> class.</p> | 85 <p>The Luan <i>Nil</i> type is implemented as the Java <i>null</i>. The Luan <i>Boolean</i> type is implemented as the Java <i>Boolean</i> type. The Luan <i>Number</i> type is implemented as the Java <i>Number</i> type. The Luan <i>String</i> type is implemented as the Java <i>String</i> type. Actual numbers may be any subclass of the Java <i>Number</i> class.</p> |
86 | 86 |
87 <p>Luan functions may be written in Luan or may be wrappers around native Java methods. Any Java method may be called as a Luan function.</p> | 87 <p>Luan functions may be written in Luan or may be wrappers around native Java methods. Any Java method may be called as a Luan function.</p> |
88 | 88 |
89 <p>Luan <i>userdata</i> is nothing more than a Java object that doesn't fall into one of the other recognized types.</p> | 89 <p>The Luan <i>java</i> type is a replacement for Lua's <i>userdata</i>. A Luan <i>java</i> value is nothing more than a Java object that doesn't fall into one of the other recognized types.</p> |
90 | 90 |
91 <p>The Luan <i>binary</i> type is the Java <i>byte[ ]</i> type which is an array of bytes.</p> | 91 <p>The Luan <i>binary</i> type is the Java <i>byte[ ]</i> type which is an array of bytes.</p> |
92 | 92 |
93 <p>The Luan <i>table</i> type is just like its Lua equivalent, but implemented in Java.</p> | 93 <p>The Luan <i>table</i> type is just like its Lua equivalent, but implemented in Java.</p> |
94 | 94 |