> >I propose that the existing C mechanism be removed from Perl 6
> >and be replaced with a pragma-induced add-in function, based on
> >the semantics of C, as described in
> >the following sections.
>
> Can you please explain what's the difference between a module and a
> pr
On 15 Sep 2000 19:18:18 -, Perl6 RFC Librarian quoted Damian Conway:
>I propose that the existing C mechanism be removed from Perl 6
>and be replaced with a pragma-induced add-in function, based on
>the semantics of C, as described in
>the following sections.
Can you please explain what's t
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes:
DC> This would work:
DC> footer => sub { "$From - $To" }
DC> except there's no way of setting the $From and $To variables as
DC> each page is formatted. I don't think C by itself is the
DC> right solution for this problem, unless I add
> PRL> Likewise, if the "footer" option is specified with a string
> PRL> value, that string is used as the footer of every page
> PRL> generated. If it is specified as a reference to a subroutine,
> PRL> that subroutine is called at the I of every page and
> PRL> its return value u
> "PRL" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
PRL> Likewise, if the "footer" option is specified with a string value, that
PRL> string is used as the footer of every page generated. If it is specified
PRL> as a reference to a subroutine, that subroutine is called at the I
PRL> of
> Replace C built-in with pragmatically-induced C function
> This RFC proposes that Perl's existing C mechanism be replaced
> with a standard module based on parts of the Text::Autoformat module.
One other little thing: I really think this should be
use Format; # like 'use Socket' and 'u
> > prints the result to the current filehandle (in a void context).
>
> The last one I think needs to be able to work on any filehandle via
> indirect object syntax, namely:
>
>format $FILE "<<< [[[ [[",
> $title,
First off, nice proposal. :-) I haven't had a change to digest the
entire thing (although I did read it all), but I would like to add a few
things:
> returns the result as a single multi-line string (in a scalar context)
> returns the result as a list of single-line strings (in a
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Replace C built-in with pragmatically-induced C function
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 15 September 2000
Mailing List: [EMAIL PROTECTED]
Number: 230
Version: 1