Hey, > I do have rough idea how to go about arrays possibly without recursive > scan, I have to try couple of things, it could work if some checks are > moved to zval level. For now it is in the future scope unless I manage to > handle the within week or two.
What's the issue with a one-time runtime check on assignment? > First two proposals are valid points. Regarding disabling constructor, that > would fail as soon as you try to write properties in constructor since > object is already "locked". You lock the object after the constructor has been called, not afterwards. If you don't do that, your objects won't be immutable. I like the RFC, but generally I think value objects that are passed by-value instead of by-reference are the better way to solve the problem. Regards, Niklas -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php