[plt-scheme] DrScheme Structures

From: Carl Eastlund (cce at ccs.neu.edu)
Date: Tue Mar 27 09:55:28 EDT 2007

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

Posted on the users mailing list.