Re: [PHP-DEV] get_class behavior

2016-01-28 Thread Lorenzo Fontana
2016-01-29 0:22 GMT+01:00 Lorenzo Fontana : > 2016-01-28 23:35 GMT+01:00 Dan Ackroyd : > >> On 28 January 2016 at 19:17, Lorenzo Fontana >> wrote: >> > Hello everybody! >> >> Hello Lorenzo, >> >> >> > If *$result* is *null* the ou

Re: [PHP-DEV] get_class behavior

2016-01-28 Thread Lorenzo Fontana
2016-01-28 23:35 GMT+01:00 Dan Ackroyd : > On 28 January 2016 at 19:17, Lorenzo Fontana > wrote: > > Hello everybody! > > Hello Lorenzo, > > > > If *$result* is *null* the output of *get_class* is the name of the > > containing class instead of the name of t

[PHP-DEV] get_class behavior

2016-01-28 Thread Lorenzo Fontana
Hello everybody! At the moment the *get_class *function has three possible behaviors - *get_class* is called with the instance of the class and return the name of the class name of the instance; - *get_class* is called without any parameters inside a class and return the containing class name - *g

Re: [PHP-DEV] Immutable modifier

2015-11-16 Thread Lorenzo Fontana
2015-11-16 10:40 GMT+01:00 Chris Riley : > > > On 16 November 2015 at 09:33, Lorenzo Fontana > wrote: > >> I really like the concept of immutability, but I think that it should be >> applicable at instance level rather than declaration. >> >> I would als

Re: [PHP-DEV] Immutable modifier

2015-11-16 Thread Lorenzo Fontana
I really like the concept of immutability, but I think that it should be applicable at instance level rather than declaration. I would also prefer another keyword than immutable. Final does not make the properties immutable, it makes the class not extensible. On Nov 16, 2015 10:24, "Daniel Perss

Re: [PHP-DEV] Lexical analyzer

2015-09-21 Thread Lorenzo Fontana
On Sep 22, 2015 06:51, "Lorenzo Fontana" wrote: > > I think you want this: > > https://github.com/php/php-src/blob/master/Zend/zend_language_scanner.l > > Lorenzo > > On Sep 22, 2015 03:46, "Carol Shimitt" wrote: >> >> Hello everyone &g

Re: [PHP-DEV] Lexical analyzer

2015-09-21 Thread Lorenzo Fontana
I think you want this: https://github.com/php/php-src/blob/master/Zend/zend_language_scanner.l Lorenzo On Sep 22, 2015 03:46, "Carol Shimitt" wrote: > Hello everyone > > Where in the source code of Zend Engiene the lexical analyzer receives the > text to convert to tokens. > > Thanks. > Carol >

[PHP-DEV] Initializer List

2015-06-17 Thread Lorenzo Fontana
if this can be achieved in PHP or not. Initializer lists in C++: http://en.cppreference.com/w/cpp/language/initializer_list What do you think? Thank you Lorenzo Fontana

Re: [PHP-DEV] Migrating PHP classes to built in namespace

2015-06-03 Thread Lorenzo Fontana
AFAIK the PHP namespace is the root one. Lorenzo 2015-06-03 10:33 GMT+02:00 Dominic Grostate : > Hi, > > I couldn't find any information on this elsewhere, or perhaps I didn't look > hard enough. Its been bugging me a while though so I though I would ask. > > Has there been any discussion or co