[plt-scheme] DrScheme Structures
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