[plt-scheme] puzzled by 'new' failure

From: David Richards (leximatica at mac.com)
Date: Wed Aug 26 11:02:10 EDT 2009

On Aug 26, 2009, at 12:27 AM, Jay McCarthy wrote:

> What language are you writing it in? scheme/gui?
>
> #lang scheme/gui

I admit I haven't used PLT Scheme in a while, but what is this "#lang  
scheme/gui" line about? Is it some sort of 'pragma'? Do we have pragma  
now? This is new and exciting.

Whatever the case, it might compress progress, because it causes a new  
error:

read: #lang expressions not currently enabled

- d

>
> (define frame (new frame% (label "test")))
>
> On Tue, Aug 25, 2009 at 10:05 PM, David Richards<leximatica at mac.com>  
> wrote:
>>
>> On Aug 25, 2009, at 9:33 PM, Jon Rafkind wrote:
>>
>>> David Richards wrote:
>>>>
>>>> This one line program fails:
>>>>
>>>> (define frame (new frame% (label "test")))
>>>>
>>>> Any advice, please?
>>>> ___________________________________________
>>>
>>> Whats the error?
>>
>> reference to undefined identified: new
>>
>>>> ______
>>>> For list-related administrative tasks:
>>>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>>
>>
>> _________________________________________________
>>  For list-related administrative tasks:
>>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>
>
>
> -- 
> Jay McCarthy <jay at cs.byu.edu>
> Assistant Professor / Brigham Young University
> http://teammccarthy.org/jay
>
> "The glory of God is Intelligence" - D&C 93



Posted on the users mailing list.