unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* cond-expand-provide and (scheme base)
@ 2020-10-22 18:24 Taylan Kammer
  2020-10-23  2:57 ` Taylan Kammer
  0 siblings, 1 reply; 2+ messages in thread
From: Taylan Kammer @ 2020-10-22 18:24 UTC (permalink / raw)
  To: guile-devel

I think the following discrepancy should probably be fixed:

  $ guile -L ~/src/scheme/bytestructures/
  guile> ,use (scheme eval)
  guile> (eval '(cond-expand (lp64 #t) (else #f))
               (environment '(guile)  ; <=== DIFFERENCE HERE
                            '(bytestructures guile numeric-data-model)))
  $1 = #t
  guile> (eval '(cond-expand (lp64 #t) (else #f))
               (environment '(scheme base)  ; <=== DIFFERENCE HERE
                            '(bytestructures guile numeric-data-model)))
  $2 = #f

WDYT?


Kind regards,

Taylan



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: cond-expand-provide and (scheme base)
  2020-10-22 18:24 cond-expand-provide and (scheme base) Taylan Kammer
@ 2020-10-23  2:57 ` Taylan Kammer
  0 siblings, 0 replies; 2+ messages in thread
From: Taylan Kammer @ 2020-10-23  2:57 UTC (permalink / raw)
  To: guile-devel

On 22.10.2020 20:24, Taylan Kammer wrote:
> I think the following discrepancy should probably be fixed:
> 
>    $ guile -L ~/src/scheme/bytestructures/
>    guile> ,use (scheme eval)
>    guile> (eval '(cond-expand (lp64 #t) (else #f))
>                 (environment '(guile)  ; <=== DIFFERENCE HERE
>                              '(bytestructures guile numeric-data-model)))
>    $1 = #t
>    guile> (eval '(cond-expand (lp64 #t) (else #f))
>                 (environment '(scheme base)  ; <=== DIFFERENCE HERE
>                              '(bytestructures guile numeric-data-model)))
>    $2 = #f

To clarify:

The module (bytestructures guile numeric-data-model) provides the 'lp64' 
condition via 'cond-expand-provide'.

The 'cond-expand' imported from the (guile) module correctly sees this, 
but the one imported from (scheme base) seems to ignore it.

Taylan



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-23  2:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 18:24 cond-expand-provide and (scheme base) Taylan Kammer
2020-10-23  2:57 ` Taylan Kammer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).