[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what do I do wrong?




--- Paul Argentoff <paul@paul.rtelekom.ru> wrote:
> ... So I don't 
> understand why the following code:
...

> (define frame (make-object frame:basic-mixin%
> "label" #f 500 400))

> ... produces this error:
> 
> 7.28-7.46: reference to undefined identifier:
> frame:basic-mixin%

The error is in the call to make-object.  Replacing
frame:basic-mixin% with frame% works.  A mixin
modifies another object to add properties to it.  It
is not an object in its own right.  Too use the mixin
you must provide a class to modify:

(define frame (make-object (frame:basic-mixin frame%)
"label" #f 500 400))
I hope that's all correct!

cya,
Noel

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/