mud 0.1.0
Maple's Utility for D
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
mud
Maple's Utility for D Utility code I use in my projects Mostly gists and bits, but contains a few things you may consider useful
Featured
mud/memory/smartpointers.d Provides basic smartpointers for d:
class A {}
immutable auto unique = newUnique!A();
class A {}
const auto sptr = newShared!A();
mud/config.d Provides basic configuration storing/restoring via UDAs:
struct A
{
@ConfigProperty() int a;
@ConfigProperty() float b;
@ConfigProperty() string someString;
}
auto a = A(12, 42.0, "Some Text");
serializeConfig(a, "test.cfg");
deserializeConfig(a, "test.cfg");
mud/functional/event.d C#-like events!
void f(int) {}
Event!(int) evt;
evt ~= &f;
evt(123);
- Registered by Grim Maple
- 0.1.0 released 3 years ago
- GrimMaple/mud
- MIT
- Copyright © 2020, Grim Maple
- Authors:
- Dependencies:
- none
- Versions:
-
0.3.0 2023-Aug-24 0.2.0 2023-Aug-07 0.1.1 2021-Oct-02 0.1.0 2021-Mar-01 ~master 2024-Sep-23 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
2 downloads this month
-
148 downloads total
-
- Score:
- 0.7
- Short URL:
- mud.dub.pm