[plt-scheme] instantiate & framework

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sun Apr 6 19:34:45 EDT 2003

The problem is that the frame:editor-mixin (which is mixed into the
class below) changes the initialization arguments; it creates a label
argument for the (eventual super class) frame% in terms of the filename
initialization argument. I will get the docs fixed up.

Robby

At Fri, 4 Apr 2003 19:04:21 +0200 (CEST), Zbyszek Jurkiewicz wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> Why am I not able to use instantiate on frame:pasteboard-infofile% ?
> 
> Welcome to DrScheme, version 203.
> Language: Graphical (MrEd, includes MzScheme).
> > (require (lib "framework.ss" "framework"))
> > (instantiate frame:pasteboard-info-file% () (label "foo"))
> instantiate: unused initialization arguments: (label "foo") for 
> instantiated class: 
> /home/staff/zbyszek/plt/collects/framework/private/frame.ss:2040:9
> > (make-object frame:pasteboard-info-file% "foo")
> #<struct:object:/home/staff/zbyszek/plt/collects/framework/private/frame.ss:2040:9>
> > 
> 
> The documentation says it has argument label.
> 
> Regards,
> 
> Zbyszek Jurkiewicz
> 



Posted on the users mailing list.