* bug: list-index overloaded
@ 2006-11-26 14:28 Han-Wen Nienhuys
2006-11-26 16:25 ` Neil Jerram
2006-11-27 11:18 ` Andy Wingo
0 siblings, 2 replies; 6+ messages in thread
From: Han-Wen Nienhuys @ 2006-11-26 14:28 UTC (permalink / raw)
Hi,
ice-9/boot.scm defines a list-index (list, elt), which is in conflict
with srfi's list-index (pred list) function.
please fix.
Wouldn't it be a good idea to check ice-9 and the builtins for naming
conflicts with srfi-X functions?
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug: list-index overloaded
2006-11-26 14:28 bug: list-index overloaded Han-Wen Nienhuys
@ 2006-11-26 16:25 ` Neil Jerram
2006-11-26 16:43 ` Han-Wen Nienhuys
2006-11-27 11:18 ` Andy Wingo
1 sibling, 1 reply; 6+ messages in thread
From: Neil Jerram @ 2006-11-26 16:25 UTC (permalink / raw)
Cc: guile-devel
Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
> Hi,
>
> ice-9/boot.scm defines a list-index (list, elt), which is in conflict
> with srfi's list-index (pred list) function.
Why is that a problem?
Regards,
Neil
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug: list-index overloaded
2006-11-26 16:25 ` Neil Jerram
@ 2006-11-26 16:43 ` Han-Wen Nienhuys
0 siblings, 0 replies; 6+ messages in thread
From: Han-Wen Nienhuys @ 2006-11-26 16:43 UTC (permalink / raw)
Cc: guile-devel
Neil Jerram escreveu:
> Han-Wen Nienhuys <hanwen@xs4all.nl> writes:
>
>> Hi,
>>
>> ice-9/boot.scm defines a list-index (list, elt), which is in conflict
>> with srfi's list-index (pred list) function.
>
> Why is that a problem?
Because list-index calls a different function depending on where I am.
running guile from the command line imports the ice-9 one by default.
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug: list-index overloaded
2006-11-26 14:28 bug: list-index overloaded Han-Wen Nienhuys
2006-11-26 16:25 ` Neil Jerram
@ 2006-11-27 11:18 ` Andy Wingo
2006-11-27 21:51 ` Neil Jerram
2006-11-28 20:12 ` Kevin Ryde
1 sibling, 2 replies; 6+ messages in thread
From: Andy Wingo @ 2006-11-27 11:18 UTC (permalink / raw)
Hi Han-Wen,
On Sun, 2006-11-26 at 15:28 +0100, Han-Wen Nienhuys wrote:
> ice-9/boot.scm defines a list-index (list, elt), which is in conflict
> with srfi's list-index (pred list) function.
>
> please fix.
This has been the case for a long time, and would be an incompatible
change, breaking code in not-very-comprehensible ways. Sometimes I avoid
importing srfi-1 for this reason. Perhaps for Rob's 2.0 vision?
Andy
--
http://wingolog.org/
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug: list-index overloaded
2006-11-27 11:18 ` Andy Wingo
@ 2006-11-27 21:51 ` Neil Jerram
2006-11-28 20:12 ` Kevin Ryde
1 sibling, 0 replies; 6+ messages in thread
From: Neil Jerram @ 2006-11-27 21:51 UTC (permalink / raw)
Cc: guile-devel
Andy Wingo <wingo@pobox.com> writes:
> Hi Han-Wen,
>
> On Sun, 2006-11-26 at 15:28 +0100, Han-Wen Nienhuys wrote:
>> ice-9/boot.scm defines a list-index (list, elt), which is in conflict
>> with srfi's list-index (pred list) function.
>>
>> please fix.
>
> This has been the case for a long time, and would be an incompatible
> change, breaking code in not-very-comprehensible ways. Sometimes I avoid
> importing srfi-1 for this reason. Perhaps for Rob's 2.0 vision?
In any case, I'm afraid I still don't understand what the problem is
here.
If someone wants the boot-9 list-index, and doesn't also need to use
srfi-1: no problem.
If someone wants the srfi-1 list-index, and doesn't also need the
boot-9 one, they just (use-modules (srfi srfi-1)) - no problem.
If someone wants to use both in the same program, they either give a
new name to the boot-9 one before doing (use-modules (srfi srfi-1)),
or they perform a renaming when doing (use-modules (srfi srfi-1)).
So what's the issue?
Regards,
Neil
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: bug: list-index overloaded
2006-11-27 11:18 ` Andy Wingo
2006-11-27 21:51 ` Neil Jerram
@ 2006-11-28 20:12 ` Kevin Ryde
1 sibling, 0 replies; 6+ messages in thread
From: Kevin Ryde @ 2006-11-28 20:12 UTC (permalink / raw)
Cc: guile-devel
Andy Wingo <wingo@pobox.com> writes:
>
> This has been the case for a long time, and would be an incompatible
> change, breaking code in not-very-comprehensible ways.
I suppose the core list-index hasn't been documented, so maybe it'd be
ok to drop it. It'd be good if only documented stuff in boot-9 was
actually visible ...
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-11-28 20:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-26 14:28 bug: list-index overloaded Han-Wen Nienhuys
2006-11-26 16:25 ` Neil Jerram
2006-11-26 16:43 ` Han-Wen Nienhuys
2006-11-27 11:18 ` Andy Wingo
2006-11-27 21:51 ` Neil Jerram
2006-11-28 20:12 ` 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).