On Sep 15, 2013 4:39 AM, "Bennie Kloosteman" <[email protected]> wrote:
> var str = "Abc123"
> var index = str.Find("c1");
> var substr = str.SubString(index, 2);

I don't like your suggested code transformation. I think it is very
important that the above code run unmodified - because it may do more
complex things with the result of find.

My suggestion was for the return type of find to change from an int to some
abstract location handle - possibly just a byte offset wrapped to keep it
opaque.
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to