Re: [PHP-DEV] operators

2012-01-30 Thread Stas Malyshev
Hi! Does anyone know what are the official names for the "->" and "=>" operators? They don't seem to be included in the PHP documentation, although I would have expected them to reside in the Operators section of the manual. => is not exactly operator, it's part of the array operator syntax (e

Re: [PHP-DEV] operators

2012-01-30 Thread Ryan McCue
Adi Nita wrote: > Does anyone know what are the official names for the "->" and "=>" > operators? They don't seem to be included in the PHP documentation, > although I would have expected them to reside in the Operators section of > the manual. The tokens are T_OBJECT_OPERATOR and T_DOUBLE_ARROW r

Re: [PHP-DEV] operators

2012-01-30 Thread Ivan Enderlin @ Hoa
On 30/01/12 13:34, Adi Nita wrote: Hello, Hello Adi, Does anyone know what are the official names for the "->" and "=>" operators? They don't seem to be included in the PHP documentation, although I would have expected them to reside in the Operators section of the manual. Also, the "\" oper

[PHP-DEV] operators

2012-01-30 Thread Adi Nita
Hello, Does anyone know what are the official names for the "->" and "=>" operators? They don't seem to be included in the PHP documentation, although I would have expected them to reside in the Operators section of the manual. Also, the "\" operator used for declaring sub-namespaces is never men

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Terje Slettebø
>From: "Darrell Brogdon" <[EMAIL PROTECTED]> >I don't think its really a resentment (for the most part) against OO in >PHP even if it seems that way. One of the stated goals of PHP is to >have a low learning curve and this is something it does very well. I'm >sure you can agree that OO concepts

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Darrell Brogdon
I don't think its really a resentment (for the most part) against OO in PHP even if it seems that way. One of the stated goals of PHP is to have a low learning curve and this is something it does very well. I'm sure you can agree that OO concepts typically don't fit that criteria which is why

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Terje Slettebø
>From: "Derick Rethans" <[EMAIL PROTECTED]> Oh, hello. I recognise your name as one of the other authors of the book "PHP 5 Power Programming", which I've recently got, and which looks very good. It seems like all the "big guns" are on this list. :) (similar to comp.lang.c++.moderated and comp.std

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Derick Rethans
On Thu, 3 Feb 2005, Stanislav Malyshev wrote: > PJ>>$b->a++; gives tmp = a; tmp = tmp+1; b->a = tmp; > PJ>> > PJ>>In my example (a date object, day being 31), at this I do not know > PJ>>if one is assigning 32 to the property or if it's the result of > PJ>>incrementation (or decrementation from 1

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Stanislav Malyshev
PJ>>$b->a++; gives tmp = a; tmp = tmp+1; b->a = tmp; PJ>> PJ>>In my example (a date object, day being 31), at this I do not know PJ>>if one is assigning 32 to the property or if it's the result of PJ>>incrementation (or decrementation from 1 to 0). That's why one should use $date->NextDay() and $d

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Terje Slettebø
>From: "Stanislav Malyshev" <[EMAIL PROTECTED]> > TS>>(***) This is how it's done in C++ (actually, a dummy int parameter), which > TS>>is a bit of a hack, to be able to specify both the pre- and > > In C++, functions differ by argument. In PHP, they don't. Yes, but a different way might be used

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Pierre-Alain Joye
On Thu, 3 Feb 2005 18:12:44 +0100 [EMAIL PROTECTED] (Terje Slettebø) wrote: > > On Thu, 3 Feb 2005 11:47:13 +0100 (CET) > > [EMAIL PROTECTED] (Derick Rethans) wrote: > > > > > On Thu, 3 Feb 2005, Sebastian Bergmann wrote: > > > > > > > Derick Rethans wrote: > > > > > Use C++/Java if you want this.

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Stanislav Malyshev
TS>>(***) This is how it's done in C++ (actually, a dummy int parameter), which TS>>is a bit of a hack, to be able to specify both the pre- and In C++, functions differ by argument. In PHP, they don't. Not to say I view that C++ hack as a kludge which is accepted only because there's no other ch

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Terje Slettebø
> On Thu, 3 Feb 2005 11:47:13 +0100 (CET) > [EMAIL PROTECTED] (Derick Rethans) wrote: > > > On Thu, 3 Feb 2005, Sebastian Bergmann wrote: > > > > > Derick Rethans wrote: > > > > Use C++/Java if you want this. > > > > > > Java does not support operator overloading. > > > > So, that means PHP should

Re: [PHP-DEV] [Operators overloading] PHP 5.1

2005-02-03 Thread Pierre-Alain Joye
On Thu, 3 Feb 2005 11:47:13 +0100 (CET) [EMAIL PROTECTED] (Derick Rethans) wrote: > On Thu, 3 Feb 2005, Sebastian Bergmann wrote: > > > Derick Rethans wrote: > > > Use C++/Java if you want this. > > > > Java does not support operator overloading. > > So, that means PHP shouldn't get it either,