Groovy Dynamically extend GStringImpl class to automatically invoke .toString() -


on this post @jalopaba explains in answer

gstring can involve lazy evaluation it's not until tostring() method invoked gstring evaluated.

can dynamically extend gstringimpl invoke tostring() on construction?

wouldn't easier override put method of map check whether key gstring , if yes, invoke tostring method? after invoke original method new key. same get.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -