Am 16.11.2005, 09:18 Uhr, schrieb Daishi Kato [EMAIL PROTECTED]:
[...]
Does anyone know of any existence of a lazy-let macro,
which does the following?
convert from
(lazy-let ([a (get-a)][b (get-b)])
(if (condition) a b))
into
(if (condition) (get-a) (get-b))
[...]
Hello,
I haven't
Hi,
I have first considered the use of delay/force,
but it turns out that it is a little bit costly.
So, I want it to be done at the complie time.
This should probablly be called let-ahead instead of lazy-let.
Anyway, your macro example is helpful to me.
Let me think again.
Thanks,
Daishi
At
On Wednesday 16 November 2005 16:08, Zbigniew wrote:
Pupeno, although I didn't try your code, the tagged pointer
functionality seems to work for me (for artificially-generated
pointers). E.g.
Version 2, Build 207 - macosx-unix-gnu-ppc - [ dload ptables ]
...
#;9 (address-pointer #x80bf740)
At Wed, 16 Nov 2005 18:18:00 +0900, Daishi Kato wrote:
Does anyone know of any existence of a lazy-let macro,
which does the following?
convert from
[...]
(lazy-let ([a (get-a)][b (get-b)])
(if (condition)
(begin (display a) a)
(begin (display b) b)))
into
(if
Please try the following patch:
--- runtime.c.orig 2005-11-16 19:53:45.0 -0600
+++ runtime.c 2005-11-16 19:53:49.0 -0600
@@ -7308,7 +7308,7 @@
void C_make_tagged_pointer(C_word c, C_word closure, C_word k, C_word tag)
{
- C_word ab[ 2 ], *a = ab,
+ C_word ab[ 3 ], *a =
On Wednesday 16 November 2005 23:16, Zbigniew wrote:
Please try the following patch:
That patch made it work! Thank you!
--
Pupeno [EMAIL PROTECTED] (http://pupeno.com)
pgpwAKkfCbLDG.pgp
Description: PGP signature
___
Chicken-users mailing list