Ethereal-dev: [Ethereal-dev] Do we need negative slice lengths?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Graeme Hewson <ghewson@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 09 May 2004 20:44:43 +0100
In the updated documentation for display filters, I say when talking about slices:

Lengths can be negative too, in which case they mean the same as a negative
end offset. Thus, the following are equivalent:

    frame[-4:2]  == 0.1
    frame[-4--3] == 0.1
    frame[-4:-3] == 0.1

Are negative slice lengths useful?  I would suggest not.


Graeme Hewson