Hi all,
the attached code creates a subclass of Object named ClassA. ClassA overrides the printString message to add '()' after the string returned by the superclass message. Calling printIt on the following statement returns the expected result: ClassA new -> a ClassA () Then a new subclass of ClassA is created called ClassB which does not contain any self defined messages. Calling printIt on the following expression ClassB new evaluates to a ClassB but I would expect it to be a ClassB () Anybody got any ideas? Best, Manfred SubclassTest.st (540 bytes) Download Attachment |
Hey, I was able to replicate this issue but upon commit/refresh it then works as expected - is that the case for you as well? -shaun
On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert <[hidden email]> wrote: Hi all, |
shaun gilchrist <[hidden email]> writes:
Yep, the issue is new and will be fixed shortly. Thanks for reporting! Cheers, Nico > Hey, I was able to replicate this issue but upon commit/refresh it > then works as expected - is that the case for you as well? -shaun > > On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert > <[hidden email]> wrote: > > Hi all, > > the attached code creates a subclass of Object named ClassA. > ClassA overrides the printString message to add '()' after the > string > returned by the superclass message. > Calling printIt on the following statement returns the expected > result: > > ClassA new -> a ClassA () > > Then a new subclass of ClassA is created called ClassB which does > not > contain any self defined messages. > Calling printIt on the following expression > > ClassB new > > evaluates to > > a ClassB > > but I would expect it to be > > a ClassB () > > Anybody got any ideas? > > Best, > Manfred > |
Thanks Nico for looking into this.
I can also open an issue on GitHub later this day if you like. Best, Manfred On Mon, May 21, 2012 at 10:54 AM, <[hidden email]> wrote: > shaun gilchrist <[hidden email]> writes: > > Yep, the issue is new and will be fixed shortly. > Thanks for reporting! > > Cheers, > Nico > >> Hey, I was able to replicate this issue but upon commit/refresh it >> then works as expected - is that the case for you as well? -shaun >> >> On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert >> <[hidden email]> wrote: >> >> Hi all, >> >> the attached code creates a subclass of Object named ClassA. >> ClassA overrides the printString message to add '()' after the >> string >> returned by the superclass message. >> Calling printIt on the following statement returns the expected >> result: >> >> ClassA new -> a ClassA () >> >> Then a new subclass of ClassA is created called ClassB which does >> not >> contain any self defined messages. >> Calling printIt on the following expression >> >> ClassB new >> >> evaluates to >> >> a ClassB >> >> but I would expect it to be >> >> a ClassB () >> >> Anybody got any ideas? >> >> Best, >> Manfred >> |
Manfred Kröhnert <[hidden email]> writes:
> Thanks Nico for looking into this. > > I can also open an issue on GitHub later this day if you like. Yep, good idea :) Nico > > Best, > Manfred > > On Mon, May 21, 2012 at 10:54 AM, <[hidden email]> wrote: >> shaun gilchrist <[hidden email]> writes: >> >> Yep, the issue is new and will be fixed shortly. >> Thanks for reporting! >> >> Cheers, >> Nico >> >>> Hey, I was able to replicate this issue but upon commit/refresh it >>> then works as expected - is that the case for you as well? -shaun >>> >>> On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert >>> <[hidden email]> wrote: >>> >>> Hi all, >>> >>> the attached code creates a subclass of Object named ClassA. >>> ClassA overrides the printString message to add '()' after the >>> string >>> returned by the superclass message. >>> Calling printIt on the following statement returns the expected >>> result: >>> >>> ClassA new -> a ClassA () >>> >>> Then a new subclass of ClassA is created called ClassB which does >>> not >>> contain any self defined messages. >>> Calling printIt on the following expression >>> >>> ClassB new >>> >>> evaluates to >>> >>> a ClassB >>> >>> but I would expect it to be >>> >>> a ClassB () >>> >>> Anybody got any ideas? >>> >>> Best, >>> Manfred >>> |
On Mon, May 21, 2012 at 12:49 PM, <[hidden email]> wrote:
> Manfred Kröhnert <[hidden email]> writes: > >> Thanks Nico for looking into this. >> >> I can also open an issue on GitHub later this day if you like. > > Yep, good idea :) Here it is: https://github.com/NicolasPetton/amber/issues/212 Best, Manfred >> On Mon, May 21, 2012 at 10:54 AM, <[hidden email]> wrote: >>> shaun gilchrist <[hidden email]> writes: >>> >>> Yep, the issue is new and will be fixed shortly. >>> Thanks for reporting! >>> >>> Cheers, >>> Nico >>> >>>> Hey, I was able to replicate this issue but upon commit/refresh it >>>> then works as expected - is that the case for you as well? -shaun >>>> >>>> On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert >>>> <[hidden email]> wrote: >>>> >>>> Hi all, >>>> >>>> the attached code creates a subclass of Object named ClassA. >>>> ClassA overrides the printString message to add '()' after the >>>> string >>>> returned by the superclass message. >>>> Calling printIt on the following statement returns the expected >>>> result: >>>> >>>> ClassA new -> a ClassA () >>>> >>>> Then a new subclass of ClassA is created called ClassB which does >>>> not >>>> contain any self defined messages. >>>> Calling printIt on the following expression >>>> >>>> ClassB new >>>> >>>> evaluates to >>>> >>>> a ClassB >>>> >>>> but I would expect it to be >>>> >>>> a ClassB () >>>> >>>> Anybody got any ideas? >>>> >>>> Best, >>>> Manfred >>>> |
In reply to this post by Nicolas Petton
On Mon, May 21, 2012 at 12:49 PM, <[hidden email]> wrote:
> Manfred Kröhnert <[hidden email]> writes: > >> Thanks Nico for looking into this. >> >> I can also open an issue on GitHub later this day if you like. > > Yep, good idea :) Here it is: https://github.com/NicolasPetton/amber/issues/212 Best, Manfred >> >> Best, >> Manfred >> >> On Mon, May 21, 2012 at 10:54 AM, <[hidden email]> wrote: >>> shaun gilchrist <[hidden email]> writes: >>> >>> Yep, the issue is new and will be fixed shortly. >>> Thanks for reporting! >>> >>> Cheers, >>> Nico >>> >>>> Hey, I was able to replicate this issue but upon commit/refresh it >>>> then works as expected - is that the case for you as well? -shaun >>>> >>>> On Sun, May 20, 2012 at 3:37 PM, Manfred Kröhnert >>>> <[hidden email]> wrote: >>>> >>>> Hi all, >>>> >>>> the attached code creates a subclass of Object named ClassA. >>>> ClassA overrides the printString message to add '()' after the >>>> string >>>> returned by the superclass message. >>>> Calling printIt on the following statement returns the expected >>>> result: >>>> >>>> ClassA new -> a ClassA () >>>> >>>> Then a new subclass of ClassA is created called ClassB which does >>>> not >>>> contain any self defined messages. >>>> Calling printIt on the following expression >>>> >>>> ClassB new >>>> >>>> evaluates to >>>> >>>> a ClassB >>>> >>>> but I would expect it to be >>>> >>>> a ClassB () >>>> >>>> Anybody got any ideas? >>>> >>>> Best, >>>> Manfred >>>> |
Free forum by Nabble | Edit this page |