Re: How to verify DMD download with GPG?

2022-02-15 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Monday, 14 February 2022 at 15:51:59 UTC, Kagamin wrote: 3AAF1A18E61F6FAA3B7193E4DB8C5218B9329CF8 is 0xDB8C5218B9329CF8 This shortening was supposed to improve user experience. Yes, I eventually noticed that the shortened fingerprints were used, but only after posting the OP… It is natural

Re: How to verify DMD download with GPG?

2022-02-15 Thread Ola Fosheim Grøstad via Digitalmars-d-learn
On Monday, 14 February 2022 at 18:12:25 UTC, Era Scarecrow wrote: For Linux sources there's MD5 and SHA-1 hashes i believe. If you have two or three hashes for comparison, the likelyhood of someone changing something without those two changing seems VRY low. I usually grab the sources fr

Re: Strange behavior of iota

2022-02-15 Thread Era Scarecrow via Digitalmars-d-learn
On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote: On Tuesday, 15 February 2022 at 22:02:13 UTC, Adam D Ruppe wrote: for(a = v.length; a > cast(size_t) -1, a += -1) After looking at the documentation and seeing CommonType!(int, uint) is uint, I have to say that iota's behavior doe

Re: Strange behavior of iota

2022-02-15 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 15 February 2022 at 22:02:13 UTC, Adam D Ruppe wrote: On Tuesday, 15 February 2022 at 21:48:29 UTC, bachmeier wrote: writeln(iota(v.length,-1,-1)); This would be like for(a = v.length; a > cast(size_t) -1, a += -1) That (cast(size_t) -1) is the same as thing.max, meaning a w

Re: Strange behavior of iota

2022-02-15 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 15 February 2022 at 21:48:29 UTC, bachmeier wrote: writeln(iota(v.length,-1,-1)); This would be like for(a = v.length; a > cast(size_t) -1, a += -1) That (cast(size_t) -1) is the same as thing.max, meaning a will never be greater than it. Why does the first argument to iot

Strange behavior of iota

2022-02-15 Thread bachmeier via Digitalmars-d-learn
This code ``` import std.conv, std.range, std.stdio; void main() { auto v = [1, 2, 3, 4, 5]; writeln(iota(v.length,-1,-1)); writeln(iota(v.length,-1.to!long,-1)); writeln(iota(v.length.to!int,-1,-1)); writeln(iota(v.length.to!uint,-1,-1)); writeln(iota(v.length.to!ulong,-

Re: split Error - no overload matches

2022-02-15 Thread meta via Digitalmars-d-learn
A trick i use often: ```D import std; void main() { import uni = std.uni; writeln("Learning D is fun".split!(uni.isWhite)); } ``` Under-rated way of importing things, you don't bloat your scope anymore

Re: split Error - no overload matches

2022-02-15 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/14/22 5:18 PM, forkit wrote: On Monday, 14 February 2022 at 11:37:38 UTC, ag0aep6g wrote: On 14.02.22 12:14, forkit wrote: However, if I uncomment the //import std.uni : isWhite; then it will compile. I don't understand. I thought 'import std;' would be sufficient here?? "isWhite" is a