No rdmd.exe in /bin64 on Windows - is this an issue?

2021-07-12 Thread Scotpip via Digitalmars-d-learn
Hi guys Just installed the DMD 2.097.0 .exe download for Windows on my 64 bit Win 10 workstation. The install created a Path to the ../bin64 folder and $dmd runs fine. But there was no $rdmd on the bin64 path. The only version of rdmd.exe is in the bin folder. I added this to my path

Re: No rdmd.exe in /bin64 on Windows - is this an issue?

2021-07-13 Thread Scotpip via Digitalmars-d-learn
Mike - I'm bowled over by your response - what a great introduction to the community! You've given me the confidence to dig in and really learn the language. I had a brief flirtation with one of the newer niche system languages but ran into showstoppers pretty early on. The community was

Re: No rdmd.exe in /bin64 on Windows - is this an issue?

2021-07-13 Thread Scotpip via Digitalmars-d-learn
Mike - thanks for responding! You say that there wasn't a Windows 64 bit release "for good reason". That sounds a bit ominous - I'd appreciate your insights into what was behind this. Given the effort that's clearly gone into VisualD I was rather assuming that Windows was fully supported

Module import failing after $ dub add mypackage

2021-07-16 Thread Scotpip via Digitalmars-d-learn
Another newbie question I'm afraid. Trying to import and use my first package from the registry. I installed D from the Windows dmd-2.097.0.exe I created the project with ```$ dub init myproject``` In the project root I've run: ``` $ dub add msgpack-d Adding dependency msgpack-d ~>1.0.3

Re: No rdmd.exe in /bin64 on Windows - is this an issue?

2021-07-16 Thread Scotpip via Digitalmars-d-learn
On Friday, 16 July 2021 at 08:22:14 UTC, RazvanN wrote: On Monday, 12 July 2021 at 23:57:37 UTC, Scotpip wrote: Hi guys Just installed the DMD 2.097.0 .exe download for Windows on my 64 bit Win 10 workstation. [...] PR: https://github.com/dlang/installer/pull/484 Good work!

Re: Module import failing after $ dub add mypackage

2021-07-16 Thread Scotpip via Digitalmars-d-learn
On Friday, 16 July 2021 at 16:42:50 UTC, Mike Parker wrote: I did encounter some missing symbols, though (`ntohl` and `ntohs`) as msgpack-d isn't linking with Ws2-32.lib. I added `pragma(lib, "Ws2_32")` to the top of the file to resolve it. (And I filed an issue:

Re: Module import failing after $ dub add mypackage

2021-07-16 Thread Scotpip via Digitalmars-d-learn
On Friday, 16 July 2021 at 15:42:32 UTC, rikki cattermole wrote: ``$ dub build`` inside of ``myproject`` should work. Thanks - that was helpful. For anyone else with this issue I've figured out what went wrong. I had more than one main() function in the project - I was using the others as

Please help me understand this function signature: std.stdio.File.byLine

2021-07-15 Thread Scotpip via Digitalmars-d-learn
Hi folks Settling down to write my first app but have come to a grinding halt. This is my first system-level language so I'm afraid I'll be asking some naïve questions. All I'm trying to do is read a text file with Windows line endings into an array for line-by-line processing. The

Re: Please help me understand this function signature: std.stdio.File.byLine

2021-07-15 Thread Scotpip via Digitalmars-d-learn
On Thursday, 15 July 2021 at 18:36:30 UTC, Tejas wrote: Sorry I'm on mobile right now so can't help much, but if you're a beginner, please read the book "programming in D" by Ali Cehreli. http://ddili.org/ders/d.en/ If you just want to learn about files for now, visit this link, it

Re: Please help me understand this function signature: std.stdio.File.byLine

2021-07-15 Thread Scotpip via Digitalmars-d-learn
Outstanding answers, folks. This is a great community! If I ever manage to get on top of this cussed language, I hope to reciprocate by posting some material aimed at newbies coming from areas like line-of-business with scripting languages, which is where I've done most of my coding. This is

Re: Please help me understand this function signature: std.stdio.File.byLine

2021-07-15 Thread Scotpip via Digitalmars-d-learn
On Thursday, 15 July 2021 at 21:23:58 UTC, H. S. Teoh wrote: My personal favorite approach to D template functions is to not think of them as templates in the first place, but rather as functions with *compile-time* parameters (in addition to the usual runtime parameters). Thanks - that