What is the preferred, or correct, method to implement overloaded function calls I.E. having the same "method" work differently depending on different parameters.
For Example: I might want a layer(x1,y1,x2,y2) Or I might want a layer(x1,y1,width,height) I can think of two ways to do it: 1) layer(x1,y1,width,height,x2,y2) and call it layer(x1,y1,,,w,y) or layer(x1,y1,x2,y2,,,) 2) use a flag layer(a,b,c,d,"usex2y2") and layer(a,b,c,d,"useWidths") and check the final parameter to determine which one I want. Perhaps you need to use derived classes "layerCoords" and "layerWidths" ??? Suggestions? I think there are examples of this in the DynAPI itself??? Thanks, Todd. _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help