On 17/05/2016 17:21, guilhermebla...@gmail.com wrote:
It all sounds reasonable on #2 what everyone is heavily
forcing/suggesting because of DbC, but it *only* makes sense in the
context of a function call (or a bound object in case of OO members). In
any other case its outcome is unpredictable.

Yeah, you're right, access to an actual parameter value or runtime instance requires logic somewhere else to provide the context, and to run the check on every execution of a function requires some magic to inject it into the call stack, or the function body, so my example doesn't really make any sense.

Regards,
--
Rowan Collins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to