On 24 Jun 2001, Ariel Scolnicov wrote:

...
> > My point is that Inline currently won't bind to this
> > function:
> >
> > __inline__ SV* JAxH(char *x) {
> >     return newSVpvf("Just Another %s Hacker", x);
> > }
>
> Good point.  Of course, other compilers do it otherwise:
>
>     #pragma inline(JAxH)
>     SV* JAxH(char *x) {
>         return newSVpvf("Just Another %s Hacker", x);
>     }
>
> on Sun, I think.
>
> And we'd want to add `huge', `far' and `near' in preparation for their
> presumable return, JIT for IA64...
>
> Better, perhaps, to allow the caller to specify some list of allowed
> additional "modifiers" (say "[qw/ __inline__ __far__ __near__ __huge__
> /]")?

I really like that. You can just specify extra modifiers which Inline will
ignore. The compiler will do all the require checking for you.

Later,
Neil

Reply via email to