BasicInterval

Interval with zero-based, half-open coordinates Any other Interval struct (or class?) OK as long as it contains "start" and "end"

Members

Functions

opCmp
int opCmp(BasicInterval other)

override the <, <=, >, >= operators; we'll use compiler generated default opEqual

opCmp
int opCmp(int other)

override <, <=, >, >= to compare directly to int: compare only the start coordinate

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

end
int end;

zero-based half-open

start
int start;

zero-based half-open

Meta