Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread drug via Digitalmars-d-learn
On 12/23/19 10:16 AM, Soulsbane wrote: On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? VSCode with this extension:

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread Aldo via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? VSCode with D extension

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread Soulsbane via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? VSCode with this extension:

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Symphony via Digitalmars-d-learn
On Sunday, 22 December 2019 at 22:47:43 UTC, Steven Schveighoffer wrote: To fix Phobos, we just(!) need to remove libc as the underlying stream implementation. I had at one point agreement from Walter to make a "backwards-compatible-ish" mechanism for file/streams. But it's not pretty, and

Re: What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread bachmeier via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most? I use Geany, but I don't know that there's any good argument for that

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/19 5:04 PM, Adam D. Ruppe wrote: On Sunday, 22 December 2019 at 18:41:16 UTC, Steven Schveighoffer wrote: Phobos doesn't call the wrong function, libc does. Phobos uses fwrite for output. There is allegedly a way to set fwrite to do the translations on MSVCRT:

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 22 December 2019 at 18:41:16 UTC, Steven Schveighoffer wrote: Phobos doesn't call the wrong function, libc does. Phobos uses fwrite for output. There is allegedly a way to set fwrite to do the translations on MSVCRT:

Re: D-ish way to work with strings?

2019-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/19 9:15 AM, Robert M. Münch wrote: I want to do all the basics mutating things with strings: append, insert, replace What is the D-ish way to do that since string is aliased to immutable(char)[]? switch to using char[]. Unfortunately, there's a lot of code out there that accepts

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/19 8:40 AM, Adam D. Ruppe wrote: On Sunday, 22 December 2019 at 06:25:42 UTC, rikki cattermole wrote: Not a bug. No, Phobos is *clearly* in the wrong here. There is a proper fix. Phobos doesn't call the wrong function, libc does. Phobos uses fwrite for output.

Re: D-ish way to work with strings?

2019-12-22 Thread Robert M. Münch via Digitalmars-d-learn
Want to add I'm talking about unicode strings. Wouldn't it make sense to handle everything as UTF-32 so that iteration is simple because code-point = code-unit? And later on, convert to UTF-16 or UTF-8 on demand? -- Robert M. Münch http://www.saphirion.com smarter | better | faster

What kind of Editor, IDE you are using and which one do you like for D language?

2019-12-22 Thread BoQsc via Digitalmars-d-learn
There are lots of editors/IDE's that support D language: https://wiki.dlang.org/Editors What kind of editor/IDE are you using and which one do you like the most?

D-ish way to work with strings?

2019-12-22 Thread Robert M. Münch via Digitalmars-d-learn
I want to do all the basics mutating things with strings: append, insert, replace What is the D-ish way to do that since string is aliased to immutable(char)[]? Using arrays, using ~ operator, always copying, changing, combining my strings into a new one? Does it make sense to think about

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 22 December 2019 at 06:25:42 UTC, rikki cattermole wrote: Not a bug. No, Phobos is *clearly* in the wrong here. There is a proper fix. http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_25.html#unicode Use the correct WriteConsoleW api instead of the ancient ascii api.

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 22 December 2019 at 06:11:13 UTC, moth wrote: is there any function i can call or setting i can adjust to get D to do the same, or do i have to wait for something to be fixed in the language / compiler itself? It isn't the language/compiler per se, it is the library calling the

Re: unicode characters are not printed correctly on the windows command line?

2019-12-22 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 22 December 2019 at 06:25:42 UTC, rikki cattermole wrote: On 22/12/2019 7:11 PM, moth wrote: is there any function i can call or setting i can adjust to get D to do the same, or do i have to wait for something to be fixed in the language / compiler itself? Not a bug. This