unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* iota from SRFI-1
@ 2006-10-10 10:01 Sven.Hartrumpf
  2006-10-11 22:58 ` Kevin Ryde
  2006-12-12 22:35 ` Kevin Ryde
  0 siblings, 2 replies; 3+ messages in thread
From: Sven.Hartrumpf @ 2006-10-10 10:01 UTC (permalink / raw)



[-- Attachment #1.1: Type: Text/Plain, Size: 409 bytes --]

Hi all.
How can I use the iota function from SRFI-1?

> rlwrap guile181 --use-srfi=1
guile> (iota 3 1)

Backtrace:
In standard input:
   1: 0* [iota 3 1]

standard input:1:1: In procedure iota in expression (iota 3 1):
standard input:1:1: Wrong number of arguments to #<procedure iota (n)>
ABORT: (wrong-number-of-args)
guile>

It looks like the iota function from ice-9/boot-9.scm is called.

Greetings
Sven

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

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

* Re: iota from SRFI-1
  2006-10-10 10:01 iota from SRFI-1 Sven.Hartrumpf
@ 2006-10-11 22:58 ` Kevin Ryde
  2006-12-12 22:35 ` Kevin Ryde
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2006-10-11 22:58 UTC (permalink / raw)
  Cc: guile-user

Sven.Hartrumpf@FernUni-Hagen.de writes:
>
>> rlwrap guile181 --use-srfi=1
> guile> (iota 3 1)
>
> Backtrace:
> In standard input:
>    1: 0* [iota 3 1]
>
> standard input:1:1: In procedure iota in expression (iota 3 1):
> standard input:1:1: Wrong number of arguments to #<procedure iota (n)>
> ABORT: (wrong-number-of-args)
> guile>
>
> It looks like the iota function from ice-9/boot-9.scm is called.

Thanks, that's a bug.  It looks like the srfi module is behind the
core when used from --use-srfi.  I guess the `use-srfis' procedure in
boot-9.scm is to blame, but I don't how it ought to be.

A plain use-modules works; and guile 1.8 has the srfi-55
`require-extension' too, if you want something semi-independent of a
particular scheme.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


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

* Re: iota from SRFI-1
  2006-10-10 10:01 iota from SRFI-1 Sven.Hartrumpf
  2006-10-11 22:58 ` Kevin Ryde
@ 2006-12-12 22:35 ` Kevin Ryde
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Ryde @ 2006-12-12 22:35 UTC (permalink / raw)
  Cc: guile-user

Sven.Hartrumpf@FernUni-Hagen.de writes:
>
> It looks like the iota function from ice-9/boot-9.scm is called.

It took a while, but I made a fix for the next release.


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


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

end of thread, other threads:[~2006-12-12 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 10:01 iota from SRFI-1 Sven.Hartrumpf
2006-10-11 22:58 ` Kevin Ryde
2006-12-12 22:35 ` Kevin Ryde

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).