develooper Front page | perl.perl6.language | Postings from February 2004

Re: Exegesis 7: Overflow Fields

Thread Previous | Thread Next
From:
Mark A. Biggar
Date:
February 28, 2004 16:09
Subject:
Re: Exegesis 7: Overflow Fields
Message ID:
40412D80.7050309@biggar.org
Luke Palmer wrote:

> Mark A. Biggar writes:
> 
>>Larry Wall wrote:
>>
>>
>>>On Sat, Feb 28, 2004 at 11:59:15AM -0800, Gregor N. Purdy wrote:
>>>: Smylers --
>>>: 
>>>: So, what I'm looking for is more explicit phrasing around "immediately
>>>: above". In the example, the column range for the overflow field is
>>>: exactly the same as that of the $method field in the prior "picture".
>>>: But, what does it do if it doesn't match *exactly*? Is it an error,
>>>: does it have some heuristics to guess? What are the edge cases?
>>>
>>>Well, obviously this is one of those places where the implementation
>>>is the spec.  :-)
>>
>>Arn't there cases where the overflow field want to be bigger then the
>>first field?  Something the ends up looking like:
>>
>>LABEL: texttexttextexttexttext
>>texttextexttextetexttexttextte
>>xttexttexttexttexttexttextttex
>>
>>where LABEL is in one field and text... is in an oveflow block?
> 
> 
> Yeah.  I'd do that this way:
> 
>     form '{<<<}: {<<<<<<<<<<<<…}',
>           $label, $text,
>          '{…<<<<<<<<<<<<<<<<<<…}',
>           $text,
>          '{VVVVVVVVVVVVVVVVVVVV}';
> 
> I think that works...  I only read E7 through once and quickly, so I'll
> have to double check that against Perl6::Form;

Expect wouldn't that produce a extra blank line if $text is short?  Or
do follow on blocks automatically do the perl 5 '~' thing?  Overflow
blocks as well?   Do we need a :option to control that.  What if I
want a follow-on or overflow block to not suppress extra blank lines?

-- 
mark@biggar.org
mark.a.biggar@comcast.net

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About