Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news4.ner.bbnplanet.net!news.ner.bbnplanet.net!howland.reston.ans.net!nntp.coast.net!torn!nott!cunews!dbuck
From: dbuck@superior.carleton.ca (Dave Buck)
Subject: Re: [VW2.0] Method creation
X-Nntp-Posting-Host: superior.carleton.ca
Message-ID: <DLGBFy.IuF@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University, Ottawa, Canada
References: <mda94jwe.18.0010DFE3@rby.hk-r.se>
Date: Fri, 19 Jan 1996 23:19:09 GMT
Lines: 38

In article <mda94jwe.18.0010DFE3@rby.hk-r.se>,
JOST WERDENHOFF <mda94jwe@rby.hk-r.se> wrote:
>Hi ,
>
>Im trying to create a method by using the compilerClass method, but I can't 
>get it to work. This is the code that I run
>
>
>Compiler compileClass: Test selector: #test source: ('
>  
>     test 
>
>       | test |
>
>       test := OrderedCollection new ')
>
>If I get some help and with this will I then be able to look at the method in 
>the browser.

This will compile the method but not add the method to the class.

A better way to do this is:

'!Test methodsFor: ''testing''!
test
    | test |
    test := OrderedCollection new! !' readStream fileIn

The method will appear when you update your browser.

David Buck
dbuck@ccs.carleton.ca

_________________________________
| David K. Buck                 |
| dbuck@ccs.carleton.ca         |
| The Object People             |
|_______________________________|
