aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/ffi.old.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/documentation/lux/ffi.old.lux')
-rw-r--r--stdlib/source/documentation/lux/ffi.old.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/documentation/lux/ffi.old.lux b/stdlib/source/documentation/lux/ffi.old.lux
index ac2dd546c..86e9a23b6 100644
--- a/stdlib/source/documentation/lux/ffi.old.lux
+++ b/stdlib/source/documentation/lux/ffi.old.lux
@@ -64,7 +64,7 @@
[]))
(#public (virtual) java/lang/Object
"")
- (#public #static (static) java/lang/Object
+ (#public "static" (static) java/lang/Object
"")
(Runnable [] (run) void
[]))
@@ -148,17 +148,17 @@
["#::."
(new [])
(equals [java/lang/Object] boolean)
- (wait [int] #io #try void)])]
+ (wait [int] "io" "try" void)])]
["Special options can also be given for the return values."
- "#? means that the values will be returned inside a Maybe type. That way, null becomes #.None."
- "#try means that the computation might throw an exception, and the return value will be wrapped by the Try type."
- "#io means the computation has side effects, and will be wrapped by the IO type."
- "These options must show up in the following order [#io #try #?] (although, each option can be used independently)."
+ "'?' means that the values will be returned inside a Maybe type. That way, null becomes #.None."
+ "'try' means that the computation might throw an exception, and the return value will be wrapped by the Try type."
+ "'io' means the computation has side effects, and will be wrapped by the IO type."
+ "These options must show up in the following order ['io' 'try' '?'] (although, each option can be used independently)."
(import: java/lang/String
["#::."
(new [[byte]])
- (#static valueOf [char] java/lang/String)
- (#static valueOf #as int_valueOf [int] java/lang/String)])
+ ("static" valueOf [char] java/lang/String)
+ ("static" valueOf #as int_valueOf [int] java/lang/String)])
(import: (java/util/List e)
["#::."
@@ -173,7 +173,7 @@
"All enum options to be imported must be specified."
(import: java/lang/Character$UnicodeScript
["#::."
- (#enum ARABIC CYRILLIC LATIN)])]
+ ("enum" ARABIC CYRILLIC LATIN)])]
["It should also be noted, the only types that may show up in method arguments or return values may be Java classes, arrays, primitives, void or type-parameters."
"Lux types, such as Maybe cannot be named (otherwise, they'd be confused for Java classes)."
(import: (lux/concurrency/async/JvmAsync A)
@@ -182,7 +182,7 @@
(poll [] A)
(wasResolved [] boolean)
(waitOn [lux/Function] void)
- (#static [A] make [A] (lux/concurrency/async/JvmAsync A))])]
+ ("static" [A] make [A] (lux/concurrency/async/JvmAsync A))])]
["Also, the names of the imported members will look like Class::member"
(java/lang/Object::new [])
(java/lang/Object::equals [other_object] my_object)