[Pharo-dev] Duplicate IVs | Bug or feature?

Noury Bouraqadi bouraqadi at gmail.com
Mon Nov 4 05:28:24 EST 2013


Hi,

In Pharo2.0  #20625 it's possible to create two classes, one inheriting from the other, and declaring the exact same IV (attached code). 
It turns out that instances of the subclass hold two IVs with the exact name.
When accessing the IV in the superclass, the first IV is used, while in the subclass the second IV is accessed.

Bug or feature?

Noury
Ecole des Mines de Douai
http://car.mines-douai.fr/noury
--






Afin de contribuer au respect de l'environnement,


merci de n'imprimer ce courriel qu'en cas de necessite





Please consider the environment before you print





-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestDuplicateIVs.st
Type: application/octet-stream
Size: 593 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131104/2caf1671/attachment.st>


More information about the Pharo-dev mailing list