[plt-scheme] Re: send-mail-message

From: -gary- (gary.dunne1 at gmail.com)
Date: Fri Apr 24 09:47:33 EDT 2009

Thanks Matthew.  That cleared it up a lot for me and I got this
section working.

Thanks again for the help :)

On Apr 22, 4:41 pm, Matthew Flatt <mfl... at cs.utah.edu> wrote:
> At Wed, 22 Apr 2009 20:09:18 +0200, Thomas Chust wrote:
>
> > 2009-04-22 -gary- <gary.dun... at gmail.com>:
> > > [...]
> > > "Your application raised an exception with the message:
>
> > > procedure application: expected procedure, given: "t... at site.com" (no
> > > arguments)"
> > > [...]
>
> > Hello Gary,
>
> > your code contains the subexpression ("t... at site.com") which is, like
> > any list,
>
> Clarification: it's not a list. The expression
>
>   ("t... at site.com")
>
> is a function call, just like
>
>  (string-append "x" "y")
>
> In the latter case, `string-append' is in the position of the function
> expression --- which is good, because `string-append' is bound to a
> function.
>
> In the former, `"t... at site.com"' is the function position --- which is
> bad, because a string isn't a function.
>
> The intent was presumably
>
>   (list "t... at site.com")
>
> to create a list that contains the string "t... at site.com".
>
> [I know that calling an application expression a "list" comes from the
>  Lisp way of thinking about how code is represented. If you want to
>  talk about the representation of an expression, though, I suggest
>  calling it "an address inside your computer's memory", because that's
>  how it's *actually* represented. :) ]
>
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.