The proposed object model is very much influenced by the Java model. In general, when
you create a new object you will be getting a handle to the object instead of the object
itself. When this handle is sent to functions, assigned and copied it is only the handle
which is copied/sent/assigned. The object itself is never copied nor duplicated. This
results in all handles of this object to always point at the same object making it a very
consistent solution and saving unnecessary duplication and confusing behavior.
C'est tres interessant. C'etait mon principal reproche a la POO en PHP.
Par contre, je plains les developpeurs qui devront reecrire leurs bibliotheques de classes pour les faire coller au nouveau paradigme.
D'autres trucs sympas que j'ai lus : l'heritage multiple, les membres prives, statiques, la gestion des exceptions, etc...
[^] # Re: Darkleon >Tout ça, c'est du marketing...
Posté par Yann Bloch . En réponse à la dépêche Comparatif jsp/php. Évalué à 1.
you create a new object you will be getting a handle to the object instead of the object
itself. When this handle is sent to functions, assigned and copied it is only the handle
which is copied/sent/assigned. The object itself is never copied nor duplicated. This
results in all handles of this object to always point at the same object making it a very
consistent solution and saving unnecessary duplication and confusing behavior.
C'est tres interessant. C'etait mon principal reproche a la POO en PHP.
Par contre, je plains les developpeurs qui devront reecrire leurs bibliotheques de classes pour les faire coller au nouveau paradigme.
D'autres trucs sympas que j'ai lus : l'heritage multiple, les membres prives, statiques, la gestion des exceptions, etc...
Bref, on se rapproche de Java.