heho!

how can i access a scripted class’s member from c++ without eval?

there has to be a nicer way than this:

```
engine.add(var(*s.type),"tmp");
auto m = engine.eval< map< std::string, Boxed_Value > >("tmp.handlers");
if(m.count("init")) {
if(boxed_cast<function<bool(Entity & e)>>(m["init"])(e)) {
s.initialized = true;
}
}
```

where s.type is a

```
shared_ptr<Boxed_Value>
```

which points to an instance of a scripted class. that class has a Map member/attribute named ‘handlers’, which holds a scripted function at key ‘init’.

now i want to know if that key exists and call the function with params and return-val from and to C++.

kind of hoped something like

```
boxed_cast< map<string,Boxed_Value> >(s.type->get_attr("handlers"));
```

would work, but get_attr seems not to do what i thought it does (returns an undef in this case).