I notice that some methods of String.Buffer use rawtypes, others don't. When is a rawtype helpful and/or necessary?
Stephen R. van den Berg wrote:
I notice that some methods of String.Buffer use rawtypes, others don't. When is a rawtype helpful and/or necessary?
Case in point:
/*! @decl Buffer `+( string|Buffer what ) */ PIKEFUN Buffer `+( string|Buffer what ) rawtype tFunc(tOr(tString, tObjIs_BUFFER), tObjIs_BUFFER);
What do I lose when the rawtype declaration is dropped here?
I think those can be removed, since they are saying the same thing. I guess you can easily compare what you get with and without the rawtype. If you look elsewhere in the file you'll see examples of types that can't be expressed in pike code, so those have to use rawtype.
pike-devel@lists.lysator.liu.se