help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Warning when duplicate instance variables


From: Gwenaël Casaccio
Subject: Re: [Help-smalltalk] Warning when duplicate instance variables
Date: Fri, 29 Jul 2011 20:26:26 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11

On 29/07/2011 18:35, Paolo Bonzini wrote:
On 07/29/2011 06:13 PM, Gwenael Casaccio wrote:
It's possible by mistake to create a class with duplicate instance
variable, the following patch checks and warms the user.

Is it done also when the first name is in the superclass? I'm not sure I'd like that (ANSI says it must not be an error BTW).


It's done for super and sub classes. I understand but this is just a warning here, and I've made it because the developer - here me :) - can loose a "lot" of time because of such kind of simple bug.

> I plan to
do the same but for duplicate methods defined on a class.

Nice, you can do that in the parser too.  Much more useful, actually!

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]