[Bug] double instvars

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug] double instvars

Christian Haider
Hi all,
 
found the condition when you get double instvars:
 
open visual.im
save as 'something.im'
add class A to package (none)
edit a method with an undeclared variable (initialize a := nil)
when accepting, you are asked what kind the var should be - answer 'Instance'
quit image without saving
open image 'something.im'
open changelist and do 'Recover Last Changes'
do 'Replay>>All from the Top'
 
Voila: you have class A with instvars 'a a'
 
 
Cheers,
    Christian
 
Smalltalked Visuals GmbH
Christian Haider
Wiesbaden, Germany
 
Reply | Threaded
Open this post in threaded view
|

Re: [Bug] double instvars

Boris Popov, DeepCove Labs (SNN)
Re: [Bug] double instvars

Yup, there's an ar for that somewhere, you can even simply accept a class definition with two identical ivars, which shouldn't be allowed on a compiler level and that would fix it for good, maybe its been done in 7.5, not sure.

Cheers!

-Boris
(Sent from a BlackBerry)

----- Original Message -----
From: Christian Haider <[hidden email]>
To: vwnc-list <[hidden email]>
Sent: Thu Mar 22 07:07:59 2007
Subject: [Bug] double instvars

Hi all,

found the condition when you get double instvars:

open visual.im
save as 'something.im'
add class A to package (none)
edit a method with an undeclared variable (initialize a := nil)
when accepting, you are asked what kind the var should be - answer 'Instance'
quit image without saving
open image 'something.im'
open changelist and do 'Recover Last Changes'
do 'Replay>>All from the Top'

Voila: you have class A with instvars 'a a'


Cheers,
    Christian

Smalltalked Visuals GmbH
Christian Haider
Wiesbaden, Germany
http://www.smallCharts.de <http://www.smallcharts.de/>