Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: add function to scriptengine

$
0
0
OK, thanks. Note that this is an instance method (as opposed to a static method), so it requires a target (a this reference).

When script code calls this method, what should the target be?

There are two ways to go. The caller can provide the target at the call site, or you can expose a delegate that's bound to a target in advance. Both are easy to do. Which shall it be?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images