Whither SmallScript? (was Re: Integer micro-benchmarks)

Darren New dnew at san.rr.com
Mon Apr 30 13:00:59 EDT 2001


Andrew Hunt wrote:
> > What do the vertical bars around the f  ("|f|") above indicate ?
> A local variable to the block, used to pass the parameter from File.new.

It's been too long since I used Smalltalk, but doesn't |f| inside a
smalltalk block declare a block-local temporary, rather than an argument? I
thought it was something like

 [ f: g: |q r| code goes here ]
that says "f" and "g" are arguments, q and r are temps?

If I'm remembering right, I'd say it's a minor faux pas to use syntax from
Smalltalk and have it mean something subtly different.

-- 
Darren New / Senior MTS & Free Radical / Invisible Worlds Inc.
San Diego, CA, USA (PST).  Cryptokeys on demand.
        schedule.c:7: warning: assignment makes calendar_week 
                          from programmer_week without a cast.



More information about the Python-list mailing list