How to use `define'

26 views
Skip to first unread message

Wen Dylan

unread,
Apr 26, 2015, 12:10:27 PM4/26/15
to joxa
Hi,

In the Joxa documentation(http://joxa.readthedocs.org/en/latest/), there is a section 5.1.16 about `define'. This section is quite brief. When I ran the example code of this section in Joxa shell, error occurs like:

oxa-is> (require joxa-core)
ok
joxa-is> (joxa-core/define :true :hello)
:0:0 *error* 'invalid-fn-form'
:0:0 *error* invalid reference defmacro/3
error

What is this `define' designed for? And how to use it correctly?
Any comment or information is appreciated.

Dylan

Eric Merritt

unread,
Sep 1, 2015, 5:26:08 PM9/1/15
to joxa
Dylan,

 You can see an example here: https://github.com/joxa/joxa/blob/15aa6c2fad19d8567c9abb92d776e30831d9f3e6/test/joxa-test-cc.jxa.

It needs better documentation. Would you be willing to file an issue?

Eric
Reply all
Reply to author
Forward
0 new messages