Re: [hop] `take' doesn't validate its arguments

[email protected]
Newsgroups gmane.lisp.scheme.bigloo,gmane.lisp.scheme.hop
Organization Inria
Message-ID <[email protected]>
Hi Ludovic, 

> Here’s the problem:
> 
> --8<---------------cut here---------------start------------->8---
> (module foo (library srfi1))
> (take '(a b) 3)
> --8<---------------cut here---------------end--------------->8---
> 
> and:
> 
> --8<---------------cut here---------------start------------->8---
> $ hop t.hop
> Segmentation violation
>     1. eval, t.hop:1
> --8<---------------cut here---------------end--------------->8---
This is more a Bigloo problem than a Hop problem.

Bigloo provides a TAKE function. It is exported by the standard library.
If you use that function, everything runs fine. You error is intercepted
and reported correctly.

The srfi1 library also exports a TAKE function (this is confusing, I
agree). This is the one that is not correctly implemented. Actually, the
assumption was made that the SRFI-1 implementation is safe and the
library is compiled in unsafe mode. The assumption is wrong so two
versions of the srfi library must be built. I will change this as soon
as possible.

Thanks for this report.

-- 
Manuel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.