Articles Tagged 'Parameters'

Use performSelector to pass integer parameters or boolean

The messages (methods) defined in the application (Application delegated) main can be invoked quickly by using performSelector :

1
2
delegate ] [[[UIApplication sharedApplication] delegate]
( applicationMessage ) ] ; performSelector: @ selector (applicationMessage)];

More ...

Topics in JavaScript variables: two alternatives

In Javascript you can write functions with variable arguments, that is, functions that do not necessarily accept a fixed number of inputs. For example you can write functions like this:

More ...

Overloading

Overloading is a really useful feature of some object-oriented programming languages. However, no tuti OO languages ​​support it, and some of the "implementing" or so limited or different. In general, functions or methods, overloading allows you to create two or more functions / methods that have the same name but accept different parameters, for example:

More ...

Variable arguments in Actionscript 3.0

In post topics and default variables in Javascript, Actionscript and PHP I was exposed using the techniques of parameter passing and default variables. Add, now, that in Actionscript 3.0 introduces a new parameter declaration can specify an array parameter that accepts any number of arguments separated by commas: ... (rest ... (rest )

More ...

Variable arguments and defaults in Javascript, Actionscript and PHP

Who develops knows that one of the characteristics of functions ( function () ) is to have or not the input arguments. It can happen, sometimes you have to write a function that, based on input parameters, behaves differently (in OO programming this behavior are referred to as polymorphism). Variable parameters (varargs), already introduced at the time of the present by default in C and classical statement of the main :

1
int main (int argc, char * argv []);

More ...


Stop SOPA