#lisp - Sun 18 Feb 2007 between 23:48 and 23:57

NY Lost Funds



zeeeeeare you working now
(at ita by any chance?)
RiastradhNo, I don't work at ITA.
actionRiastradh vanishes.
Riastradhvanishes.
zeeeeedoes lisp usually evaluate function arguments left-to-right? i.e. will the following definitely give me the two lines in order? (format t "~A || ~A" (read-line stream) (read-line stream))
pkhuongzeeeee: common lisp guarantees left to right evaluation. Scheme doesn't.
zeeeeeis there a way in lisp to give things like read-line some 'context' (e.g. that we're reading from my 'stream' variable) so that i can call it without the explicit argument?
(instead of reading from *standard-input*)
i suppose i'm thinking of perl's $_ stuff but i'm not sure; i know no perl
vb has a 'with' keyword, but that's for resolving members
pkhuongzeeeee: like rebinding *standard-input*? It's a special variable.
pebblestonezeeeee: (let ((*standard-input* stream)) (read-line))
zeeeee: CL has dynamic scoped variables. scheme don't.
zeeeeei wonder if anybody actually does that.

Page: 2 9 16 

IrcArchive

NY Lost Funds