Re: [Newbies] Best way to implement two-dimensional array

2007-09-03 Thread John Almberg
H'mmm... The only way I can figure out how to create a nested directory literal is to do this: |t| t := { #fs -> ({ #C -> 0. #B -> 1. #R -> 2 } as: Dictionary) } as: Dictionary. (t at: #fs) at: #B. "Gives '1' when evaluated" The parens are necessary, as far as I can figure. Is there an

Re: [Newbies] Traits

2007-09-03 Thread Matthew Fulmer
On Mon, Sep 03, 2007 at 06:42:15PM +0300, [EMAIL PROTECTED] wrote: > Thanks Matthew, that's interesting. I have never heard of traits. So > 'uses:' is a way of incorporating behaviour/values which don't naturally > inherit? Traits are a new (as of squeak 3.9) feature of squeak, and were added b

[Newbies] Traits

2007-09-03 Thread andy . burnett
Thanks Matthew, that's interesting. I have never heard of traits. So 'uses:' is a way of incorporating behaviour/values which don't naturally inherit? cheers AB This is not a class; it is a trait. Traits are separate from classes. Object is not special; neither is it's superclass ProtoObject

Re: [Newbies] Stopping a debug-window loop

2007-09-03 Thread Blake
On Sat, 01 Sep 2007 20:46:29 -0700, Michael van der Gulik <[EMAIL PROTECTED]> wrote: Install REPLServer, which should be available from SqueakMap or the PackageUniverse. Start it and make sure it works. When Morphic breaks, telnet to localhost on port 4445 and type in: : utils rebootMorphic.

Re: [Newbies] Best way to implement two-dimensional array

2007-09-03 Thread Bert Freudenberg
See http://www.mucow.com/squeak-qref.html#BraceArray Another common way is to use a literal array #(...) and convert that into a Dictionary with a few statements. That way you use only a single literal. - Bert - On Sep 2, 2007, at 19:54 , John Almberg wrote: Ah... Now that's han