[Top][All Lists]

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

Re: [Chicken-users] one more egg - need advice how wrt. exports

From: John Cowan
Subject: Re: [Chicken-users] one more egg - need advice how wrt. exports
Date: Wed, 4 Nov 2015 00:35:05 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

"Jörg F. Wittenberger" scripsit:

> Firstly I have not found a way to rename identifiers on export (as in
> r6rs libraries).  Is there really no way or did I miss it?

That's a limitation of Chicken that I hope will eventually be lifted.
In the meantime, you have to import the conflicting names with renaming,

In the meantime, you can make two modules, one that holds the code and
another that just plays games with imports and exports.
> Right now the egg contains two modules "srfi-101-ra" and "srfi-101".
> The former exports all identifiers with the "ra:" prefix.  The latter is
> only there to strip the prefix.
> But if one simply does "(use srfi-101)" this behaves confusing.  It's a
> bit hard to make sure "car", "map" etc. are what you expect when mixing
> srfi-101 lists and native lists.
> Should I rather not export anything from the "srfi-101" module and
> require the user to import some (to be written) module?  Or is there a
> better(TM) way?
> Otherwise it may be ready to be added to the eggs listing too.
> Thanks
> /Jörg
> _______________________________________________
> Chicken-users mailing list
> address@hidden

John Cowan        address@hidden
"But I am the real Strider, fortunately," he said, looking down at them
with his face softened by a sudden smile.  "I am Aragorn son of Arathorn,
and if by life or death I can save you, I will."

reply via email to

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