chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Conditional expansion: #+


From: j . romildo
Subject: [Chicken-users] Conditional expansion: #+
Date: Fri, 11 Jul 2008 20:01:50 -0300
User-agent: Mutt/1.5.14 (2007-02-12)

Hello.

The stalin.scm source file, from the stalin egg, starts with

   #+(not csi)
   (include "QobiScheme")
   (include "architectures.scm")

According to the manual,

   #+FEATURE EXPR

is the conditional expansion, a non-standard read syntax, and it is
equivalent to

   (cond-expand (FEATURE EXPR) (else))

Therefore the code above should be equivalent to

   (cond-expand
    ((not csi) (include "QobiScheme"))
    (else))

   (include "architectures.scm")

Is that right?

If so, maybe stalin.scm should not be implemented this way.

For what I understand, stalin is not supposed to be run from the Chicken
interpreter. So the conditional expand shoud avoid compiling the whole
file, no only the first include form.

Any comments?

José Romildo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]