Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!corton!irisa!boissier From: boissier@irisa.fr (franck boissiere) Newsgroups: comp.lang.smalltalk Subject: Re: Access methods - New feature ? Message-ID: <1991Apr22.121631.1136@irisa.fr> Date: 22 Apr 91 12:16:31 GMT References: <2270@media03.UUCP> Sender: news@irisa.fr Organization: IRISA, Rennes (FR) Lines: 24 From article <2270@media03.UUCP>, by pkr@media03.UUCP (Peter Kriens): > Dan Walkowski writes: [stuff deleted] > a feature I could love in Smalltalk. Unfortunately you cannot access the > compiler in Digitalk smalltalk, otherwise it could be done. > You do not need to modify the compiler to do this (unless you want to change the syntax which is what Peter proposes). The key is to define a new class definition message which allow you to specify which variables are to be exported. The key issue is to track all class modification to add/remove the methods according to instance variable additions/removals. In fact when you do an accept in the Browser text pane the Compiler simply evaluate the expression printed. -- Franck BOISSIERE boissier@irisa.irisa.fr C.C.E.T.T. B.P. 59 boissiere@ccett.fr 35512 CESSON SEVIGNE CEDEX FRANCE