Types

Closure

Closure type. User-defined functions/methods are Closures

Methods

==(a:Closure, b:Closure)
Closure equality comparison. Implemented as sameness comparison.
ArgvMatcher(option:Str, value:Any, f:Closure)
Sets ARGV matching option.
c_pthread_create(attr:c_pthread_attr_t, start_routine:Closure, arg:Any)
Call PTHREAD_CREATE(3). Not recommended for direct calls, use Thread type instead.
ip(c:Closure)
Get closure code instruction pointer.
params(c:Closure)
Get closure parameters.
push(hook:Hook, handler:Closure)
Add unnamed handler. The hook is automatically named "pushed-N" where N is sequential integer.
Str(c:Closure)
String representation of a closure
~(argv:Arr, c:Closure)
Tries to match command line arguments with closure parameters.