Printing shortest decimal form of floating point number with Mir

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Jan 5 21:09:52 UTC 2021


On Tuesday, 5 January 2021 at 21:03:40 UTC, welkam wrote:
> This code compiles
>
> struct bar(T) {}
> void f(T)(bar!T x) {}
>
> void main()
> {
>     alias fooInt = bar!int;
>     alias foo = bar;
>
>     assert(is(fooInt  == bar!int));
>     assert(is(foo!int == bar!int));
>     assert(is(fooInt  == foo!int));
> }

This code has no relation to what we discuss in this thread…


More information about the Digitalmars-d-announce mailing list