Arc Forumnew | comments | leaders | submitlogin
Possible Jarc bug: expt
1 point by mapper 5172 days ago | 1 comment

  Jarc> (expt 10 2)
  (stdin):39: Error: Symbol 'expt' has no value


2 points by rocketnia 5171 days ago | link

Here's a complete listing of the things defined in ac.scm that aren't in Jarc:

  Jarc>
    (rem bound
      '(sig apply cons car cdr is err nil t + - * / mod expt sqrt > <
        len annotate type rep uniq ccc infile outfile instring outstring
        inside stdout stdin stderr call-w/stdout call-w/stdin readc
        readb peekc writec writeb write disp sread coerce open-socket
        socket-accept setuid new-thread kill-thread break-thread sleep
        system pipe-from table maptable protect rand dir file-exists
        dir-exists rmfile mvfile macex macex1 eval on-err details scar
        scdr sref bound newstring trunc exact msec
        current-process-milliseconds current-gc-milliseconds seconds
        client-ip atomic-invoke dead flushout ssyntax ssexpand quit
        close force-close memory declare timedate sin cos tan asin acos
        atan log))
  (nil t expt sqrt setuid kill-thread pipe-from exact current-process-milliseconds current-gc-milliseconds client-ip flushout force-close asin acos atan)
  Jarc>
For comparison, Rainbow throws an exception trying to calculate (bound 'nil), and without nil, its list is (t peekc).

Even though t and nil aren't 'bound in Jarc or Rainbow, they still work in practice.

-----