Code That Says Exactly What It Means
Peter C
peterc at gmail.com
Sun Oct 26 22:50:51 UTC 2025
On Sunday, 26 October 2025 at 15:51:51 UTC, monkyyy wrote:
> On Sunday, 26 October 2025 at 09:35:47 UTC, Peter C wrote:
>> But my knowledge of D is somewhat limited - I don't think it
>> even has a decimal type??
>
> the core devs just hate datastructures, fixed point type would
> be reasonable to ask from an std and probably would be 50 lines
> of code ish
>
> But that should be a lib type not a fundamental one
>
>> scopeprivate
>
> I believe its in opend but feel free to guess how much I
> verified it works
opend is where I got the idea. (though I got uncomfortable with
typing (and looking at) 'private(this)' and changed it to
'scopeprivate'.
It works well enough in opend, but the implementation needs a
little more work. Just for example, in D, all non-static,
non-final member functions of a class are virtual unless they are
private or package functions. So private(this) member functions
should not be virtual. This is a pretty simple fix in fund.d
More information about the Digitalmars-d
mailing list