Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Testing Project 2

0 views
Skip to first unread message

Phillip Liu

unread,
Oct 5, 2002, 9:15:55 PM10/5/02
to

To Anyone (Greg especially):

My partner and I defined everything supposedly correctly. When running the
(x-painter full-frame) function (painter-x function in our case), we only
get a return closure args list from the segments->painter function. We
didn't modify it or anything.

Check out our painter-x function...

(define (painter-x frame)
(let ((seglist (list (make-segment (frame-origin frame) (add-vect
(frame-edge1 frame) (frame-edge2 frame)))
(make-segment (frame-edge2 frame) (frame-edge1
frame))))
)
(segments->painter seglist)))

After we ran the function accordingly to turtle graphics:

we get

STk> (painter-x full-frame)
#[closure arglist=(frame) 1b8cc0]


Whats going on?

Phillip Liu

unread,
Oct 5, 2002, 11:19:23 PM10/5/02
to van thanh nguyen
Ohhhhh right i see. I didn't care to look up at the segments->painter
function. Thanks alot!

-Phil


Greg Krimer

unread,
Oct 6, 2002, 3:39:48 AM10/6/02
to
See, you don't need me after all. =)

On Sun, 6 Oct 2002, van thanh nguyen wrote:

> The reason you get #[closure arglist=(frame) 1b8cc0] is that
> (segments->painter seglist) always returns a procedure takes frame as an
> argument.
> Just try this to see if it works
> ((segments->painter seglist) frame)
> I hope that helps
> Van
>
> In article <Pine.SOL.4.44.02100...@dv310.CS.Berkeley.EDU>,

0 new messages