Re: split Error - no overload matches

2022-02-14 Thread forkit via Digitalmars-d-learn
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 ambiguous. There's std.uni.isWhite

Re: How to verify DMD download with GPG?

2022-02-14 Thread Era Scarecrow via Digitalmars-d-learn
On Tuesday, 8 February 2022 at 10:17:19 UTC, Ola Fosheim Grøstad wrote: I do like the idea that a hacker cannot change the signature file if gaining access to the web/file hosts, but how to verify it in secure way? For Linux sources there's MD5 and SHA-1 hashes i believe. If you have two or

Re: How to verify DMD download with GPG?

2022-02-14 Thread Kagamin via Digitalmars-d-learn
3AAF1A18E61F6FAA3B7193E4DB8C5218B9329CF8 is 0xDB8C5218B9329CF8 This shortening was supposed to improve user experience.

Re: how to handle very large array?

2022-02-14 Thread Matheus via Digitalmars-d-learn
On Monday, 14 February 2022 at 13:20:45 UTC, MichaelBi wrote: thanks, you are all correct. i just change the algorithm and use the AA, previously using the naïve method...:), now solved perfectly. thanks again. You could have used a normal Int Array for this task too, you're dealing with numb

Re: how to handle very large array?

2022-02-14 Thread MichaelBi via Digitalmars-d-learn
On Saturday, 12 February 2022 at 20:31:29 UTC, H. S. Teoh wrote: On Sat, Feb 12, 2022 at 06:41:14PM +, Era Scarecrow via Digitalmars-d-learn wrote: [...] [...] That was not my point. My point was to question whether the OP has discovered the insight that would allow him to accomplish his

Re: split Error - no overload matches

2022-02-14 Thread ag0aep6g via Digitalmars-d-learn
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 ambiguous. There's std.uni.isWhite and std.ascii.isWhite. `import std;` can't know which one you

split Error - no overload matches

2022-02-14 Thread forkit via Digitalmars-d-learn
This code will not compile. Error: no overload matches for `split` 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?? // module test; @safe: import std; void main() { //import std.

Re: Cross Compile to Linux from Windows using LDC?

2022-02-14 Thread Kagamin via Digitalmars-d-learn
Isn't cross-linker enough? My regular mingw build of ld says it supports elf64-x86-64 traget, so I assume something like this should be enough: ld -b elf64-x86-64 -L lib --dynamic-linker /lib64/ld-linux-x86-64.so.2 --as-needed --gc-sections -s lib/crt1.o lib/crti.o my.o -lc lib/crtn.o