[geos-devel] Issue with returning Coordinate * rather than value
David Blasby
dblasby at refractions.net
Fri Nov 15 12:32:05 EST 2002
> Coordinate *getAt(int i) /// Safe
> Coordinate *[int i] /// DANGER !!!! super fast RAW access
Yes - I like that. The getAt(int) should return a non-pointer or its should allocate a new
Cooridinate and return that.
Is the [int] method going to do range checking or are we just going to assume the caller is
competent?
dave
More information about the geos-devel
mailing list