But it’s not a good idea to do this. If you want to do something as intrusive as eval’ing code into a module that’s not yours then do at least require that to be explicitly passed.
pfitzseb
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Get module of a caller | 4 | 1034 | January 10, 2019 | |
| How to get the name of macro calling function? | 3 | 634 | November 30, 2021 | |
| How to get current module/scope in macro | 2 | 2207 | August 12, 2018 | |
| How to get current module/scope in macro | 1 | 3024 | August 12, 2018 | |
| Current_module() vs @__MODULE__ / They are not equivalent | 4 | 739 | April 16, 2018 |