cArray Upgrades Part 3
Well, I've now allowed developers to shoot themselves in the foot even more. The cArray.Sort* routines will now accept either an IComparer object, or an address of a compare function. This will allow direct access to the array elements as they are being sorted, making it easier to compare objects and userdefined types. They will be passed into the callback function as ByRef of the type specified. But since the developer need to ensure the signature of the callback method matches the datatype, there is plenty of room to blow things up. More power to you!
- Kelly
- Kelly
0 Comments:
Post a Comment
<< Home