Rob Arthan wrote:
Thanks for responding so promptly with documentation for the new scheme.
I have a query about this extract from your document:
"The consistent parameter indicates whether the block is to be broken
consistently (true) or not (false). If it is true then if the block will
not all fit on a line and must be broken then it will be broken at all
the breaks in the block whether this is necessary or not."
I think "all the breaks in the block" here is intended to means all the
PrettyBreak constructs appearing as immediate children of the
PrettyBlock construct (so that nested PrettyBlock constructs override
the outer setting of the consistent parameter). Is that right?
Yes. I wrote that rather quickly. It needs going through and
rephrasing in some parts. If a nested block fits on a line then it is
treated as a unit. I seem to recall, though, that if a nested block has
to be broken because it won't fit then this causes breaks at all
consistent breaks (i.e. breaks immediately within a block defined as
consistent) in all outer blocks. It's a while since I looked at this.
Regards,
David
_______________________________________________
polyml mailing list
polyml@inf.ed.ac.uk
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml