Page 1 of 1

Generic invocation of primitive methods

Posted: Wed Sep 01, 2021 12:38 pm
by gtcp
Is there an equivalent to Object.sendMsg for primitive types? Something like Any.sendMsg and sendMsgWithParams? I'd settle for type-specific Boolean.sendMsg etc though that would be a bit more clumsy. Would use this extensively for run-time expression evaluation. It would be way better than constructing proxy classes for primitives as we do now, and having to keep them updated.