Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Default Parameters - Quick Question
#3
Well I am going to say YES!

You/the user just have to put empty strings of 0 numbers for arguments so you maintain place holders so that the order of arguments compare to your Parameter list in your/the developers of Sub/Function definition and of course you/the developer spec the default value when user does use empty string or 0 for number.
And YES it doesn't have to be an empty string or 0 value number, it could be some other signal value to indicate the use of a default eg, use a number < 0 to request default width or height.

And yes, what I am talking about is not like what you can do with overloaded functions in C or C++ when you can drop arguments off the call.
b = b + ...
Reply


Messages In This Thread
RE: Default Parameters - Quick Question - by bplus - 11-12-2023, 03:35 PM



Users browsing this thread: 1 Guest(s)