How to update Associative Array?
kdevel
kdevel at vogtner.de
Fri Feb 18 14:40:23 UTC 2022
On Monday, 14 February 2022 at 01:04:08 UTC, Ali Çehreli wrote:
[...]
> Point taken but how deep should we understand library code, not
> all being Phobos. My pet peeve:
>
> import std.stdio;
>
> void main(string[] args) {
> writefln!"hello"(42);
> }
>
> /usr/include/dlang/dmd/std/stdio.d(4442): Error: no property
> `msg` for type `string`
>
> I am happy that it's caught at compile time but what 'msg'
> property are we talking about? What does it have to be with me?
>
> I would like it if the
>
> It would be better if the compilation error said:
>
> Must satify formatSpecsMatchArgs!("hello", int)
Interestingly
writefln ("hello", 42);
does not throw at runtime.
More information about the Digitalmars-d-learn
mailing list