|
From: | Matthew Woehlke |
Subject: | Re: [RFC] linecut addition |
Date: | Tue, 09 Oct 2007 19:38:05 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 |
Steven Schubiger wrote:
Matthew Woehlke wrote:So I guess it's important to specify if '-1' means "the last line", or "the n'th-to-last last line (n==1 in this example)" (in which case '-0' means something). Similarly, if 'n,+k' means "k line(s), starting at n" or "line n plus k line(s)".I fail to see where your descriptions don't apply to the currentworking mechanism (implying that I eventually don't fully grok your wording).
Probably, because...
Possibly best to pick so that '-0' and '+0' both either make sense or do not make sense. I think I lean towards being all one-based.I wouldn't want to use '+0' & '-0', because '+0' is basically a no-op and assigning '-0' a meaning when '-1' does the same, seems superfluous. We could emit some kind of outbound-error though.
...you obviously feel that '+0' means 'output no lines' and the last line is '-1', not '-0'. (There is nothing wrong with this, I was just noting that this is not the only possible interpretation.) Now that we agree on our definitions, we (by which I mean "I") just need to try not to mix them up :-).
-- Matthew morphir: so much confusion :S kmake, kdemake, qmake make cmake etc. logixoul: you forgot cmakekde :) morphir: and bakemeacake
[Prev in Thread] | Current Thread | [Next in Thread] |