|
-
Aug 3rd, 2006, 05:07 PM
#8
Re: [2005] optional parameters cannot have structure types
I'd suggest not using optional parameters at all and use overloading instead, which you have to do in this case. I guess the advantage of optional parameters is that the caller can provide none, any or all of the arguments with values, whereas with overloading you have to define the specific combinations. In this case I'd declare one overload with no colours and one with all three.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|