If I could get some comments on the original issues I mentioned (in
http://markmail.org/message/aohq5lcoeaiqos7y?q=php+internals+list:net.php.lists.internals)
it would be really nice, too :)
Nikita
On Wed, Nov 30, 2011 at 6:28 AM, Александр Москалёв wrote:
> Morfi, see my mail in this thread. St
Morfi, see my mail in this thread. Still no answer to this question.
With regards, Alexander Moskaliov
ir...@irker.net
2011/11/30 Morfi
> Why not possible?
>
> $result = ($model = new DomainModel('foo', 'bar'))->findByName('John');
>
>
>
Why not possible?
$result = ($model = new DomainModel('foo', 'bar'))->findByName('John');
On Wed, Nov 30, 2011 at 5:55 AM, Rasmus Lerdorf wrote:
> On 11/29/2011 05:22 PM, de...@lucato.it wrote:
> > Hi Rasmus,
> >
> > I already tested a similar example (see
> > http://codepad.viper-7.com/tNkTTX
On 11/29/2011 05:22 PM, de...@lucato.it wrote:
> Hi Rasmus,
>
> I already tested a similar example (see
> http://codepad.viper-7.com/tNkTTX) but I'm getting
Sorry, pasting something into codepad doesn't qualify as testing. You
have no idea how and when they built the 5.4 they are running. Until
Hi Rasmus,
I already tested a similar example (see http://codepad.viper-7.com/tNkTTX)
but I'm getting
> *Parse error*: syntax error, unexpected '->' (T_OBJECT_OPERATOR)
so my question... I thought this feature was part of 5.4 considering the
previous messages, perhaps it is not.
Devis
On 30 N
Hi,
is the new dereferencing syntax definitely part of 5.4 ?
Will it be possible to replace this:
$model = new DomainModel('foo', 'bar');
$result = $model->findByName('John');
with:
$result = (new DomainModel('foo', 'bar'))->findByName('John');
?
Thank you
Devis
On 21 November 2011 07:59,
On 11/29/2011 04:49 PM, de...@lucato.it wrote:
> Hi,
>
> is the new dereferencing syntax definitely part of 5.4 ?
>
> Will it be possible to replace this:
>
> $model = new DomainModel('foo', 'bar');
> $result = $model->findByName('John');
>
> with:
>
> $result = (new DomainModel('foo', 'bar'))
Amateurish question to internals:
Why can not we do more general cases? For example (expr)[3];
(expr)->foo->bar;
(expr)()->baz[3]()->makeSomething()[4] = 16; etc.
Now we have (new some)->something; and doSomething()[12], but why only this
cases?
Big trouble in parser to do this? Can someone help
Hi internals!
I want to discuss some details of the new dereferencing syntaxes which
were introduced in 5.4.
1. I already mentioned lack of support for dereferencing using the
alternative array syntax earlier
(http://markmail.org/thread/j6rs3bzgzhxmco7n) but there was no
conclusion on that topic.