On Sunday, October 6, 2002, at 03:39  AM, Brian Ingerson wrote:
> Hmm. I hadn't considered this use case. I think I would have to add a
> directive for this. Something like this:
>
>     use Inline C => WAIT =>
>                NAME => Foo =>
>              VERSION => '1.23';
>
>     use Inline C => <<':-)';
>        ...
>     :-)
>
>     use Inline C => <<':^D';
>        ...
>     :^D
>
>     use Inline C => 'FINISH';

I'd rather see something like this:

     use Inline C =>
                WAIT => 1,
                NAME => __PACKAGE__,
             VERSION => '1.23';

     Inline->add_code(C => <<':-)');
        ...
     :-)

     Inline->add_code(C => <<':^D');
        ...
     :^D

     Inline->finish('C');  # Maybe 'C' is optional


Note the change from "WAIT" to "WAIT => 1", and the "add_code()" method.

  -Ken

Reply via email to