Subject: RE: set! From: Avi Kivity <Avi@xxxxxxxxxxxxx> Date: Tue, 5 Jan 1999 14:39:40 +0200 |
On Tuesday, January 05, 1999 14:06, Stefan Mintert [SMTP:mintert@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] wrote: > > > Hi! > > > I'm looking for a way to *change* the value of a variable. Some > years ago I > learned Scheme based on the book "Structure and interpretation of > computer > programs" by Abelson/Sussman/Sussman. The Scheme version described > in that > book contains a function called set!. Does the expression language > of DSSSL > contain such a feature? No, but I've seen a proposal (can't remember where) to add some mutating operations. > > On page 30 of the DSSSL spec one can read: "The expression language > uses only > the functional, side-effect free subset of Scheme. [...]" > > I guess that set! or any equivalent feature was removed because of > it's > side-effects. Is that correct? Yes. > > Any help is appreciated. Thanks in advance! > Post your problem! Usually a side-effect-free solution can be found, although it's not always elegant. --------------------- Year 2000 Statement: "9. Deinde, ne in posterum a XII kalendas aprilis aequinoctium recedat, statuimus bissextum quarto quoque anno (uti mos est) continuari debere, praeterquam in centesimis annis; qui, quamvis bissextiles antea semper fuerint, qualem etiam esse volumus annum MDC, post eum tamen qui deinceps consequentur centesimi non omnes bissextiles sint, sed in quadringentis quibusque annis primi quique tres centesimi sine bissexto transigantur, quartus vero quisque centesimus bissextilis sit, ita ut annus MDCC, MDCCC, MDCCCC bissextiles non sint. Anno vero MM, more consueto dies bissextus intercaletur, februario dies XXIX continente, idemque ordo intermittendi intercalandique bissextum diem in quadringentis quibusque annis perpetuo conservetur." - Pope Gregory DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|