On Mon, 2006-06-12 at 23:27 +0100, Neil Jerram wrote:
> Yes, sounds like it. Is your most recent patch still how you think
> this should be done?
I think we should apply both my pkg-config patch as well as this patch,
which fixes the RETVAL situation, and adds a macro for checking the
version exp
Hi y'all,
Is there any sensible way to implement the following semantics:
(+ (values 1 2))
==>
3
Or perhaps with a macro of some sort (but preferably as above)...
(+ (values->list-elements (values 1 2)))
==>
3
The intermediate step (after the macro expansion I guess) would look like
(+ 1 2)
=
Aaron VanDevender <[EMAIL PROTECTED]> writes:
> Secondly, the code above fails if (version) is 1.6.10, since the string
> comparison operators are char by char.
Yes! I noticed this a few weeks ago, but bizarrely then forgot about
it and managed to persuade myself that string>=? was somehow OK.
Jon Wilson <[EMAIL PROTECTED]> writes:
> (define-macro (dyn-set! var val)
>`(begin (if (not (defined? (quote ,var)))
> (primitive-eval `(define ,(quote ,var) #f)))
>(set! ,var ,val)))
>
> (defined? 'undefined-symbol) ; => #f
> ;(set!
[EMAIL PROTECTED] (Ludovic Courtès) writes:
> Code confinement is indeed an interesting feature. Fortunately, Guile
> offers various ways to do it (AFAIK, there's no standard way to do this
> in R5RS Scheme). :-) [...]
That's a very nice explanation. Is there a good place for it
somewhere in t
On Mon, 2006-06-12 at 09:42 +0200, Ludovic Courtès wrote:
> For instance, you could use the following tests within your `configure.ac':
>
> GUILE_PROGS
> GUILE_CHECK_RETVAL([correct_version_p],
> [(exit (string>=? (version) "1.6.7"))])
The guile.m4 that is currently in CVS has a comment a
Hi,
Mildred <[EMAIL PROTECTED]> writes:
> I do not know how to do that in scheme. Apparetly the function
> null-environment can return an environment and eval can evaluate some
> code in an environment. But the question is how to define a variable in
> an environment and also how to undefine a va
Hi,
I'm new to this mailing list and also new to the scheme language ...
I'm used to Lua but I try to search about functionnal programming, and
I found scheme. It looks like a good language but before using it in my
projects I would like to know if tere is an easy way to create
sandboxes.
In lua,
Hi,
Aaron VanDevender <[EMAIL PROTECTED]> writes:
> Is there a better way to do autoconf tests for guile versions that hacks
> like this:
>
> GUILE_VERSION = `$GUILE --version | head -1 | cut -d ' ' -f 2`
Yes, you'd rather use the M4 macros shipped in `guile.m4' and that were
documented in the 1