[plt-scheme] define/public doesn't like my macro
On 08/06/06, Noel Welsh <noelwelsh at yahoo.com> wrote:
> --- "Paulo J. Matos" <pocmatos at gmail.com> wrote:
>
> > On a similar subject:
> > Why can't I use foo method in place of for-each procedure
> > argument?
>
> http://download.plt-scheme.org/doc/mzlib/mzlib-Z-H-4.html#node_sec_4.5.1
>
> "Method names within a class can only be used in the
> procedure position of an application expression; any other
> use is a syntax error."
>
Ah, that's the reference I was missing.
> So do this:
>
> (for-each (lambda (elt) (foo elt)) x)
>
Yes, thanks. I did that already! :)
> HTH,
> Noel
>
> Email: noelwelsh <at> yahoo <dot> com noel <at> untyped <dot> com
> AIM: noelhwelsh
> Blogs: http://monospaced.blogspot.com/ http://www.untyped.com/untyping/
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group