help-smalltalk
[Top][All Lists]
Advanced

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

[Help-smalltalk] Re: [bug] Class variables only bound in methods followi


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: [bug] Class variables only bound in methods following them
Date: Thu, 26 Mar 2009 23:30:28 -0700

Issue status update for http://smalltalk.gnu.org/project/issue/286 Post a follow up: http://smalltalk.gnu.org/project/comments/add/286

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  dpollet
Updated by:   bonzinip
Status:       active

I agree that it's confusing, but "stealing" a binding from Undeclared
would not be possible for two reasons:


   *  you risk introducing a binding from one class to another



   *  you cannot handle the case in which two different classes have
the same undeclared variable, and then the variable turns out to be a
class variable /only in one of the two/.


The way to fix this would be to give a warning upon defining the class
variable if the variable can be found in Undeclared.  Usually the
naming conventions for globals and class variables are different enough
that it should not give many false positives.






reply via email to

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