[Chicken-users] Help solving this phasing problem.

2011-02-12 Thread Patrick Li
Hello everyone, I'm creating a module that exports two things, a macro and a function. The definition of the macro happens to require the use of the function. I am having problems creating this module. The defined macro cannot access the function. --Example

Re: [Chicken-users] Help solving this phasing problem.

2011-02-12 Thread Peter Bex
On Sat, Feb 12, 2011 at 04:35:23PM -0500, Patrick Li wrote: > > I have a *very* ugly workaround right now. > I define the convenience function twice. Once normally. And again within a > begin-for-syntax form. You can do the same trick as before: (module module-a (convenience-function) (import

Re: [Chicken-users] Help solving this phasing problem.

2011-02-12 Thread Patrick Li
Thanks Peter. That's perfectly good enough. As long as I'm not repeating myself and it's transparent to the user, I can live with it. You've been very helpful. -Patrick On Sat, Feb 12, 2011 at 4:51 PM, Peter Bex wrote: > On Sat, Feb 12, 2011 at 04:35:23PM -0500, Patrick Li wrote: > > > > I hav

Re: [Chicken-users] Help solving this phasing problem.

2011-02-12 Thread Taylor Venable
On Sat, Feb 12, 2011 at 16:51, Peter Bex wrote: > This imports module-a (which can be internal and nobody has to know it's > there) both for syntax and normally, and then re-exports the convenience > function. Pardon the interruption, but I wanted to check for my own understanding: is import-for-

Re: [Chicken-users] Help solving this phasing problem.

2011-02-13 Thread Felix
From: Peter Bex Subject: Re: [Chicken-users] Help solving this phasing problem. Date: Sat, 12 Feb 2011 22:51:05 +0100 > On Sat, Feb 12, 2011 at 04:35:23PM -0500, Patrick Li wrote: >> >> I have a *very* ugly workaround right now. >> I define the convenience function twic

Re: [Chicken-users] Help solving this phasing problem.

2011-02-13 Thread Felix
From: Taylor Venable Subject: Re: [Chicken-users] Help solving this phasing problem. Date: Sat, 12 Feb 2011 18:04:13 -0500 > On Sat, Feb 12, 2011 at 16:51, Peter Bex wrote: >> This imports module-a (which can be internal and nobody has to know it's >> there) both for synt

Re: [Chicken-users] Help solving this phasing problem.

2011-02-13 Thread Peter Bex
On Sun, Feb 13, 2011 at 01:59:47PM +0100, Felix wrote: > > This imports module-a (which can be internal and nobody has to know it's > > there) both for syntax and normally, and then re-exports the convenience > > function. > > > > Yes, this is ugly. > > Well, is it? Not having an alternative doe

Re: [Chicken-users] Help solving this phasing problem.

2011-02-13 Thread John Cowan
Peter Bex scripsit: > begin-also-for-syntax? begin-for-both-environments? :) I like this idea best, though better names are needed. Personally, I would prefer begin-utriusque-phasidis, but I can see why people might not like that. -- As you read this, I don't want you to feel John Cowan so