On 8/30/15, Nicolai Hess <
[hidden email]> wrote:
Below is a more illustrative and realistic example.
The loop is indirect.
Result:
a) Pharo 4.0 image freezes
b) Pharo 5-50287 it is fine (see screen shot)
--Hannes
| dict theEntry1 theEntry2 |
dict := Dictionary new.
theEntry1 := Dictionary new.
dict at: 'house' put: theEntry1.
theEntry1 at: 'fr' put: 'maison'.
theEntry1 at: 'ge' put: 'Haus'.
theEntry1 at: 'es' put: 'casa'.
theEntry1 at: 'cf' put: 'building'.
theEntry2 := Dictionary new.
dict at: 'building' put: theEntry2.
theEntry2 at: 'fr' put: 'bâtiment'.
theEntry2 at: 'de' put: 'Gebäude'.
theEntry2 at: 'es' put: 'edificio'.
"cross references"
theEntry2 at: 'cf' put: theEntry1.
theEntry1 at: 'cf' put: theEntry2.
dict inspect
Pharo-50287_recursive_data_structure_Screenshot from 2015-09-02 09:28:51.png (164K)
Download Attachment