Re: Non-ugly ways to implement a 'static' class or namespace?

2023-01-28 Thread ProtectAndHide via Digitalmars-d-learn
On Wednesday, 25 January 2023 at 15:43:46 UTC, ryuukk_ wrote: using static class and static function is not "OOP way" of doing things, it's a hack to mimic procedural style because Java doesn't have proper modules / scoping mimicking the shortcomings of Java is a bad idea imo D empowers

Re: hasUDA alternatives?

2023-01-28 Thread Hipreme via Digitalmars-d-learn
On Saturday, 28 January 2023 at 16:29:35 UTC, Anonymouse wrote: I use `hasUDA`, `getUDAs` and `getSymbolsByUDA` fairly heavily in my project. dmd requires some 3.2Gb to compile it, a dub recompilation taking somewhere around 8-14 seconds, depending on the phase of the moon. It's not too bad,

hasUDA alternatives?

2023-01-28 Thread Anonymouse via Digitalmars-d-learn
I use `hasUDA`, `getUDAs` and `getSymbolsByUDA` fairly heavily in my project. dmd requires some 3.2Gb to compile it, a dub recompilation taking somewhere around 8-14 seconds, depending on the phase of the moon. It's not too bad, admittedly. Stuff like this, naturally taken out of all context: