[plt-scheme] define/public doesn't like my macro

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Thu Jun 8 08:38:39 EDT 2006

--- "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?


"Method names within a class can only be used in the
procedure position of an application expression; any other
use is a syntax error."

So do this:

  (for-each (lambda (elt) (foo elt)) x)


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 

Posted on the users mailing list.