logo       

My favourite strange expression [was: Challenge]: msg#00163

lang.smalltalk.squeak.beginners

Subject: My favourite strange expression [was: Challenge]

On Thu, 13 Jul 2006 12:39:53 +0200, Bert Freudenberg wrote:

Heh. My favourite strange expression is this:

# "hi there" :== '_'

1) Who can guess what the result is WITHOUT trying it?
2) Who can explain what's happening?
3) Do we need to fix it?

- Bert -

Found another one (relative to #7042):

| philosopher mathematicians |
mathematicians := 2.
philosopher := philosopher == mathematicians.
OrderedCollection new
addLast: philosopher;
removeLast: mathematicians;
size

Questions 1-3 from Bert applicable to *both* issues ;-)

/Klaus





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise