[PROPOSAL] "use" keyword

Rick Waldron waldron.rick at gmail.com
Fri Jul 25 13:32:37 PDT 2014


On Fri, Jul 25, 2014 at 4:25 PM, Michaël Rouges <michael.rouges at gmail.com>
wrote:

> @Andrea :
>
> Yeah, I don't really want to rewrite the methods, I only want to share my
> "shared" variable with these methods.
>
> Furthermore, your code don't works because "method" don't knows "shared".
>

You could temporarily (or not) share the data as a property of the foreign
object's method itself.

https://gist.github.com/rwaldron/7a3fe8bd49831978846e

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140725/3c1d5da3/attachment.html>


More information about the es-discuss mailing list