Top "Optional-parameters" questions

An optional parameter is one that a caller can include in a call to a function or method, but doesn't have to.

Passing an empty array as default value of an optional parameter

How does one define a function that takes an optional array with an empty array as default? public void DoSomething(…

c# default-value optional-parameters
How to add an optional parameters/default value parameters in VB function?

How can I create a method that has optional parameters in it in Visual Basic?

vb.net parameters optional-parameters
The compiler is complaining about my default parameters?

I'm having trouble with this piece of code , after i took this class from the main.cpp file and splitted …

c++ class optional-parameters
Passing optional parameter by reference in c++

I'm having a problem with optional function parameter in C++ What I'm trying to do is to write function with …

c++ pass-by-reference optional-parameters
Do I need to pass empty parameters to a javascript function?

Say I have a function like this, which i'm calling throughout a script: function form_senden( form_name, cnf, confirm_…

javascript function parameters optional-parameters
How would I skip optional arguments in a function call?

OK I totally forgot how to skip arguments in PHP. Lets say I have: function getData($name, $limit = '50', $…

php function parameters default-value optional-parameters
Web Service Method with Optional Parameters

Possible Duplicate: Can I have an optional parameter for an ASP.NET SOAP web service I have tried looking around …

c# .net web-services optional-parameters
What should be the default value in a DateTime optional parameter?

Normally, if I have a nullable type for an optional parameter, I would put null as the default value. This …

c# .net datetime optional-parameters
Optional parameters in functions and their mutable default values

Possible Duplicate: “Least Astonishment” in Python: The Mutable Default Argument I'm kind of confused about how optional parameters work in …

python parameters parameter-passing optional-parameters
How to create default value for function argument in Clojure

I come with this: (defn string->integer [str & [base]] (Integer/parseInt str (if (nil? base) 10 base))) (string->…

function clojure default-value optional-parameters