Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-18 Thread Chaim Frenkel
"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 Cformat by itself is the DC right solution for this problem, unless I add some

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-18 Thread Bart Lateur
On 15 Sep 2000 19:18:18 -, Perl6 RFC Librarian quoted Damian Conway: I propose that the existing Cformat mechanism be removed from Perl 6 and be replaced with a pragma-induced add-in function, based on the semantics of CText::Autoformat::form, as described in the following sections. Can

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-17 Thread Chaim Frenkel
"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 Istart PRL of

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-17 Thread Damian Conway
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 Istart of every page and PRL its return value used

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-16 Thread Nathan Wiger
Replace Cformat built-in with pragmatically-induced Cformat function This RFC proposes that Perl's existing Cformat 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

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-15 Thread Nathan Wiger
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

Re: RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-15 Thread Damian Conway
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, $text1,

RFC 230 (v1) Replace Cformat built-in with pragmatically-induced Cformat function

2000-09-15 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Replace Cformat built-in with pragmatically-induced Cformat function =head1 VERSION Maintainer: Damian Conway [EMAIL PROTECTED] Date: 15 September 2000 Mailing List: [EMAIL PROTECTED] Number: 230