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

Edited Feature: Dynamic host object projection [3]

$
0
0
Host objects that provide custom behavior via the `dynamic` keyword would benefit from a similar access mode from script code. As with C#, script code should be able to choose which "view" of the object it's dealing with. One possibility:
```
hostObject.Add('foo', 123); // normal access
num = hostObject.dynamic.foo; // dynamic access
```

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images