expression

2010-06-23 Thread Michael Lucy
Hey, Is there any scheme expression that will just get ignored when the scheme code is compiled? I'm generating some code with a function like: (define (gen-update-ab updatea updateb) `(begin ,(if updatea `(set! a (+ a 1)) `(donothing)) ,(if updateb `(set! b (+ b 1)) `(donothing

Re: expression

2010-06-23 Thread No Itisnt
On Wed, Jun 23, 2010 at 4:09 PM, Michael Lucy wrote: > Hey, > > Is there any scheme expression that will just get ignored when the > scheme code is compiled? > > I'm generating some code with a function like: > > (define (gen-update-ab updatea updateb) >  `(begin >     ,(if updatea `(set! a (+ a 1

Re: expression

2010-06-23 Thread Michael Lucy
Doesn't look like it ignores it: scheme@(guile-user)> ,c (begin (set! x 1)) Disassembly of #: 0(assert-nargs-ee/locals 0) 2(make-int8:1) ;; 1 3(load-symbol "x") ;; x 8(link-now) 9(variable-set) 10(void) 11(return) sch

Re: r6rs library documentation

2010-06-23 Thread Julian Graham
Hi Ludovic! > There’s no ‘fold’ in R6RS-lib; it’s called ‘fold-left’. Fixed -- see commit 5b379729bb5f5d06ceb02c4e96ccc62cf61f9c62. > Should be “Guile’s core library (@pxref{List Modification}).” Fixed. > How about this instead: > > �...@code{div} is an alias for Guile’s @code{quotient} and

Re: expression

2010-06-23 Thread Ken Raeburn
On Jun 23, 2010, at 17:09, Michael Lucy wrote: > Is there any scheme expression that will just get ignored when the > scheme code is compiled? > > I'm generating some code with a function like: > > (define (gen-update-ab updatea updateb) > `(begin > ,(if updatea `(set! a (+ a 1)) `(donothing