self ~main

self


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:

self-d

Idea / Rationale

self is a package to bring automatic constructor initializations to Dlang:

class Point {
    private double x;
    private double y;

    this(self!x, self!y) {
        // x and y are already set at this point.
    }
}
Dependencies:
none
Versions:
0.0.1 2024-Jan-17
~main 2024-Jan-17
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 2 downloads total

Score:
0.0
Short URL:
self.dub.pm