Hi Alan,

--- Alan Knowles <[EMAIL PROTECTED]> wrote:
> not sure all the bits you where trying to do.. but
> function calls::::
> 
> function test () {
>     print_r(func_get_args());
> }
> test("a","w","C');
> 
> more normally...
> 
> function test($a,$b=NULL) {
>        if ($b===NULL) { // tripple equal to make
> sure that "" != NULL
>             $b=$a
>             $a = "id";
>        }
>         ......
> }
> 
> test(12);
> test("name","fred");

I think that's a bit what I meant with

>... In the constructor, you could
>test on the number of parameters but this would still
>allow only one implementation with 1 parameter, only
>one implementation with 2 parameters, etc...

And you could indeed still add tests on parameter type
in order to get different behaviour.  There are
several alternatives, but I think what we are
searching for is: what is the cleanest way to solve
the problem of not being able to have multiple
constructors each having different signatures.

Regards, 

pascal

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to