On Mon, 05 Nov 2012 14:37:07 +0100
dexen deVries <dexen.devr...@gmail.com> wrote:

> hello list,
> why does `rd' return NIL in simplest use ('sym or NIL argument):
> (in "info.txt"
>    (print (rd]
> while it seems to work fine with 'cnt argument:
> (in "info.txt"
>    (print (rd 1]
> guess i'm doing something wrong @_@
> using picoLisp-3.1.0.tgz.

rd without argument (or with a sym) means binary read, it tries to read
an atom or expression in the binary PLIO format (used by pr). Rd with a
number argument means to read the given amount of bytes as a bignum.
The sym argument is an optional end of file flag to return instead of
the default (NIL).
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to