[plt-scheme] Re: Load unit after macro expansion
On 3/1/07, Paulo J. Matos <pocm at soton.ac.uk> wrote:
> Hello all,
>
> I'm trying to define a system which is based on runtime loadable
> units. However, these units are covered by a language I defined which
> should be converted into a unit. So basically, I have a file with a
> (define-type ...) (some macro I defined in my system kernel), which
> expands to a a-unit (that's what I thought it would be best at the
> time, but it could also expand only to a unit, not sure what's best).
> That unit should then be loaded. Problem is, I have to do this at
> runtime.
>
> How can I macro-expand the source code on a file and evaluate it during runtime?
> Moreover, should I expand to an a-unit or a unit would be enough?
After thinking a bit on this issue, I just got to think that what I'm
doing is a bit of non-sense. I'll probably not be using macros at this
time and I'll be coding the a-units directly and load them as usual.
So you may just disregard this question.
Cheers,
Paulo Matos
>
> --
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
>
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK