[plt-scheme] DrScheme Structures

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Tue Mar 27 10:05:41 EDT 2007

I suggest adding

(define ... "error")

as an auxiliary definition.


-- Matthias




On Mar 27, 2007, at 9:55 AM, Carl Eastlund wrote:

> On 3/27/07, Pat <patrick.amkayah at gmail.com> wrote:
>> Hello all,
>> When I define this:
>>
>> ;; distance-to-0 : posn  ->  number
>> ;; to compute the distance of a-posn to the origin
>> (define (distance-to-0 a-posn) ...)
>>
>>
>> I get this error messege on clicking run;
>>
>> ...: name is not defined, not an argument, and not a primitive name.
>>
>> Can someone please tell me what I am doing wrong?
>
> The text "..." in your definition is just a placeholder for a program.
> It's not actually valid code by itself.  You have to replace "..."
> with the body of the function distance-to-0 before you click Run.
>
> -- 
> Carl Eastlund
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme



Posted on the users mailing list.