On Friday, September 27, 2002, at 11:55 AM, Sean O'Rourke wrote:
> --- Ken Williams <[EMAIL PROTECTED]> wrote:
>> I wouldn't use comments if I were you, because they're awfully
>> ugly and contain too many points of head-scratching failure.
>> I'd prefer something more explicit:
>>
>> use Inline C
>> __END__
>> __C__
>> TYPEMAP(foo *, ...typemap code here...)
>>
>> void bar(foo* my_foo) {
>> }
>
> But wouldn't that make it Inline "not-C"? *ducks*
>
> Seriously, it seems dangerous to me to make the C recognized by
> Inline an extended dialect.
Well, there are already lots of Inline macro extensions like
"Inline_Stack_Push(sv)". Those are mostly just for convenience,
but convenience is basically what we're talking about here too.
> It seems much less painful to do something like this:
>
> use Inline C => type => 'foo *', '/* foo* typemap code */';
>
Yeah, that could work too. I don't know which would be better
yet. What seems important is that there's a way to specify them
both internally and externally, facilitating both very small and
very large projects.
-Ken