chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Handling unstandard reader macros.


From: felix winkelmann
Subject: Re: [Chicken-users] Handling unstandard reader macros.
Date: Wed, 23 Nov 2005 07:37:05 +0100

On 11/23/05, Pupeno <address@hidden> wrote:

>
> > > BTW, what should I return from my procedures that handle extensions. I
> > > was returning '() but that causes an error, I am now returning
> > > '(nevermind) since I don't care about it.
> >
> > Sorry, what kind of procedures are that?
> The procedure that is set by set-read-syntax![1].

Just return the value that is whatever your reader-procedure
wants the read datum to be.

> [1] In my case:
>   (set-read-syntax! #\#
...

Here you are overriding all #... read syntax. You want to use
`set-dispatch-read-syntax!' instead (which allows you to
add/redefine #... syntax without stomping over everything
already available.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]