Re: Discuss: Classes are well supported in D, with Design by Contracts. Shouldn't we take advantage of that?

2025-09-13 Thread Neto via Digitalmars-d-learn
On Saturday, 13 September 2025 at 15:26:15 UTC, H. S. Teoh wrote: On Sat, Sep 13, 2025 at 12:43:38AM +, Brother Bill via Digitalmars-d-learn wrote: [...] Whose avoid list? [...] what are those real profiles that you're using now?

Re: Microsoft chose Go instead of C# or Rust to rewrite TypeScript

2025-09-08 Thread Neto via Digitalmars-d-learn
On Monday, 8 September 2025 at 16:51:09 UTC, Serg Gini wrote: On Monday, 8 September 2025 at 16:43:10 UTC, Neto wrote: [...] It is an old news now. They decided to use Go, because it was closer to the language of their initial implementation (TypeScript). D is expensive for production in mo

Microsoft chose Go instead of C# or Rust to rewrite TypeScript

2025-09-08 Thread Neto via Digitalmars-d-learn
this is the reasoning https://github.com/microsoft/typescript-go/discussions/411 I wonder if they did consider D language. First comment says why Rust would be a good choice "If not C#, I would have expected Rust, since that's where the rest of the ecosystem is. So, another surprise there." i

Re: why can't I use --eval and pass a file at same time?

2025-06-24 Thread Neto via Digitalmars-d-learn
On Tuesday, 24 June 2025 at 19:06:17 UTC, Richard (Rikki) Andrew Cattermole wrote: That version of rdmd must be quite old, I can't find that message in its source. https://github.com/dlang/tools/blob/master/rdmd.d#L193 I've just downloaded it. I'm using rdmd build 20200216 on wslinux and on

why can't I use --eval and pass a file at same time?

2025-06-24 Thread Neto via Digitalmars-d-learn
why can't use do something like this? ```d import std.stdio : writeln, writefln; void main() { writeln("Hello"); } ``` and pass a file like: rdmd aa.d --eval="write(\"hello\");" returns ``` object.Exception@rdmd.d(193): Cannot have both --eval and a program file ('eval.d'). -

scope parameter has effect only on pointers?

2025-06-22 Thread Neto via Digitalmars-d-learn
this give the error: ```d @safe: int *gp2; int g(scope int *p) { gp2 = p; return -1; } ``` Error: scope variable p assigned to non-scope gp2 but this one doesn't give any error: ```d @safe: int gg; int f(scope int c) { int k = c; gg = c; return k *

Re: What is gdmd?

2025-06-22 Thread Neto via Digitalmars-d-learn
On Sunday, 22 June 2025 at 09:12:57 UTC, Dejan Lekic wrote: On Saturday, 21 June 2025 at 18:21:21 UTC, Neto wrote: What is gdmd? googling doesn't give useful results I forgot to mention - If I put `dlang gdmd` on Ecosia, it yields the link I gave you as the first link... I assume it would be

Re: What is gdmd?

2025-06-21 Thread Neto via Digitalmars-d-learn
On Saturday, 21 June 2025 at 18:24:43 UTC, Dejan Lekic wrote: On Saturday, 21 June 2025 at 18:21:21 UTC, Neto wrote: What is gdmd? googling doesn't give useful results Most likely this -> https://github.com/D-Programming-GDC/gdmd seeems to be the case https://github.com/dlang/tools/blob/17a

Re: Multiply a string?

2025-06-21 Thread Neto via Digitalmars-d-learn
On Saturday, 21 June 2025 at 12:43:31 UTC, Jabba Laci wrote: On Saturday, 7 June 2025 at 16:13:06 UTC, Andy Valencia wrote: Which is to say, build a string by concatenating " " ddepth times. Is there a comparable idiom in dlang or Phobos? I use this: ```d import std.stdio; import std.array;

Re: Multiply a string?

2025-06-21 Thread Neto via Digitalmars-d-learn
On Saturday, 21 June 2025 at 16:23:42 UTC, H. S. Teoh wrote: On Sat, Jun 21, 2025 at 04:18:37PM +, Neto via Digitalmars-d-learn wrote: On Saturday, 7 June 2025 at 16:42:51 UTC, Sergey wrote: [...] > ```d > void main() { > string error_message = "D's desing

Re: Multiply a string?

2025-06-21 Thread Neto via Digitalmars-d-learn
On Saturday, 7 June 2025 at 16:42:51 UTC, Sergey wrote: On Saturday, 7 June 2025 at 16:13:06 UTC, Andy Valencia wrote: Which is to say, build a string by concatenating " " ddepth times. Is there a comparable idiom in dlang or Phobos? Thanks! Andy I think there are many ways to do it The sim

Re: Where can I find D jobs?

2023-04-28 Thread Neto via Digitalmars-d-learn
On Saturday, 29 April 2023 at 00:29:28 UTC, Neto wrote: I'm thinking in moving from freelancer to some company, but I'd like to use D. Are there any companies hiring where D is used? note: hire without a degree. and remote.

Where can I find D jobs?

2023-04-28 Thread Neto via Digitalmars-d-learn
I'm thinking in moving from freelancer to some company, but I'd like to use D. Are there any companies hiring where D is used? note: hire without a degree.

Re: Compiler is calling `_memset64` in betterC

2020-10-18 Thread Neto via Digitalmars-d-learn
On Sunday, 18 October 2020 at 16:12:59 UTC, Paul Backus wrote: On Sunday, 18 October 2020 at 16:04:55 UTC, Koro wrote: I'm writing a 'betterC' program and the compiler is generating a call to '_memset64' if I have an array literal where the elements are the same. It's a known bug: https://is

Re: How do I compile a program with curl lib on Windows?

2017-08-10 Thread Neto via Digitalmars-d-learn
UPDATE 2: Managed to do it! Got the precompiled binaries from here: https://github.com/HazeProductions/libcurl (thank @frk1 very much for his repo) downloaded them then extracted the release folder to proper curl folder on my machine then dmd -L-libcurl app.d -I"C:\libcrl" worked just

Re: How do I compile a program with curl lib on Windows?

2017-08-10 Thread Neto via Digitalmars-d-learn
On Thursday, 10 August 2017 at 20:29:53 UTC, Neto wrote: Could someone give me an example to how do I compile a program with support to curl on Windows? Where do I find the .lib for link against my D programa under Windows or do I need to compile it myself? I downloaded the lib versions at curl

How do I compile a program with curl lib on Windows?

2017-08-10 Thread Neto via Digitalmars-d-learn
Could someone give me an example to how do I compile a program with support to curl on Windows? Where do I find the .lib for link against my D programa under Windows or do I need to compile it myself? I downloaded the lib versions at curl's official web site but I find either .a files or .h in