On Wed, Feb 11, 2009 at 11:46, Pjotr Kourzanov
<peter.kourza...@xs4all.nl> wrote:

>  Should we not have a way to specify a plugin in the source itself?
> This could be achieved by tagging a function with a __plugin__
> attribute (or a #pragma), exporting the PluginAPI as a bunch of
> built-in functions and having the compiler itself (1) ensure that such
> functions only call portable built-ins, and (2) compiling/executing or
> interpreting them as compilation passes. Then, the code can just
> #include a source-level plugin to have it available just for that
> translation unit.

But then, what would be the difference between this and just adding
your pass to the compiler?  I'm not sure I understand what this would
buy you in terms of simplicity.  Perhaps I'm missing something.


Diego.

Reply via email to