Standardize base types for metaprogramming

monkyyy crazymonkyyy at gmail.com
Sun Mar 10 02:24:31 UTC 2024


On Saturday, 9 March 2024 at 20:13:42 UTC, Walter Bright wrote:
> 
> I'm not so sure about this. Is "" really a zero? max-1 are not 
> invalid values for ints.

I believe an empty string is the smallest string possible

max-1 is so negative != invalid for unsigned ints

Are you worried about the details or the core idea? Right now I 
have .init and maybe .max which mild reminder float.inits 
behavior is slightly contentious, zero vs invalid is trying to 
compromise with that debate

> As for the op overloads, CTFE to the rescue!

I dont wish to reimpliment them and for all I know the hashes 
aa's use may change, the object.d toString returns may change in 
syntax etc.

Easy programming is built on api's




More information about the dip.ideas mailing list