[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Negative page numbers

From: Urs Liska
Subject: Re: Negative page numbers
Date: Sun, 16 Sep 2018 21:34:48 +0200
User-agent: K-9 Mail for Android

Am 16. September 2018 21:28:26 MESZ schrieb Dan Eble <address@hidden>:
>> Real
>> Page_breaking::page_height (int page_num, bool last) const
>> {
>>   // The caches allow us to store the page heights for any
>>   // non-negative page numbers.  We use a negative value in the
>>   // cache to signal that that position has not yet been initialized.
>>   // This means that we won't cache properly if page_num is negative
>>   // if calc_height returns a negative number.  But that's likely to
>>   // be rare, so it shouldn't affect performance.
>This comment seems to imply that there are legitimate uses for negative
>page numbers.  Is anyone willing to agree that I am interpreting it

Literally, yes.
But someone like me might also write that comment to conceal that I don't know 
how to prove it *can't* happen ;-)

>lilypond-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]