Login  Register

Re: Simple Spec Examples

Posted by Benjamin Van Ryseghem (Pharo) on Oct 12, 2013; 1:37pm
URL: https://forum.world.st/Spec-Lists-setting-the-selection-tp4713776p4714066.html

Actually, you can do (1->2 -> 3) if you have multiple levels :)

But clearly I will introduce a real data structure here.
I just wanted to quickly hack it and have something where 
I can do  #head and #tail easily, and keep a simple way to write it :)

Ben

On Oct 12, 2013, at 3:04 PM, Sean P. DeNigris <[hidden email]> wrote:

Camillo Bruni-3 wrote
for me that implies that the tree contains an actual item (1 -> 11).

Yes, not only is it a C-style obfuscation (remember how much confusing the
event buffers are!!), but what do you do when the tree is more than two
levels? Definitely an object is calling to be born here...



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Spec-Lists-setting-the-selection-tp4713776p4714058.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.