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

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

So do this:

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

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 


Posted on the users mailing list.