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

2019-12-24 Thread Murilo 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 Notepad++ on Windows and Bluefish on Linux. I'm a minimalist

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

2019-12-24 Thread IGotD- 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 VisualStudio with VisualD. The IDE is ok and debugging

`in` parameters optimization

2019-12-24 Thread Adnan via Digitalmars-d-learn
Does the compiler automatically pass values by reference if possible with `in` parameters in higher level of optimization flags? I would normally use `in ref` but sometimes it's not compatible with different types.

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

2019-12-24 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 24, 2019 at 07:46:27PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: [...] > I just got sick of ls printing green on white and hurting my eyes. Or > blue on black. Haha, one of the first things I do upon installing a new Linux system is to turn off ls colors. :-D Hurts the

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

2019-12-24 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 17:52:20 UTC, H. S. Teoh wrote: Not to mention that the colors usually clash horribly with my chosen foreground/background color scheme in my terminal, which only adds unreadable bits of text to the problem. This is one of the reasons why I made a custom

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

2019-12-24 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 24, 2019 at 10:18:49AM +, Russel Winder via Digitalmars-d-learn wrote: > On Mon, 2019-12-23 at 08:09 -0800, H. S. Teoh via Digitalmars-d-learn > wrote: > […] > > No idea, I use vanilla vim (not even with syntax highlighting -- I'm > > a hardcore retro guy). > > Surely a hardcore

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

2019-12-24 Thread Marcone 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 am using "Sublime Text" for code Dlang.

Re: Blog Post #0095: Hardware II - Full Monitor Report

2019-12-24 Thread Ron Tarrant via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 10:23:34 UTC, Russel Winder wrote: You have to love GTK+, GtkD, and D. :-) Too true, Russell. :) Happy Winter Solstice (*). (*) Or whatever winter solstice related holiday works for you. :-) Right back at ya, sir.

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

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Monday, 23 December 2019 at 20:45:53 UTC, TheGag96 wrote: I've loved Sublime for years. I use it for everything, really. So pretty, so fast. I really like Sublime, too. Paid for it. But now that VS Code's performance is within my tolerance range, the built-in console makes the

Re: array of functions/delegates

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 13:13:12 UTC, MoonlightSentinel wrote: On Tuesday, 24 December 2019 at 10:40:16 UTC, Mike Parker wrote: struct S {} void f1(S s) {} void f2(S s) {} alias Func = immutable(void function()); immutable Func[2] funcs = [cast(Func), cast(Func)]; Though, it's not

Re: array of functions/delegates

2019-12-24 Thread MoonlightSentinel via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 07:37:02 UTC, Rumbu wrote: I am trying to create an array of functions inside a struct. struct S { void f1() {} void f2() {} alias Func = void function(); immutable Func[2] = [, ] } What I got: Error: non-constant expression '' Tried also with

Re: array of functions/delegates

2019-12-24 Thread MoonlightSentinel via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 13:13:12 UTC, MoonlightSentinel wrote: On Tuesday, 24 December 2019 at 10:40:16 UTC, Mike Parker wrote: struct S {} void f1(S s) {} void f2(S s) {} alias Func = immutable(void function()); immutable Func[2] funcs = [cast(Func), cast(Func)]; Though, it's not

Re: array of functions/delegates

2019-12-24 Thread MoonlightSentinel via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 10:40:16 UTC, Mike Parker wrote: struct S {} void f1(S s) {} void f2(S s) {} alias Func = immutable(void function()); immutable Func[2] funcs = [cast(Func), cast(Func)]; Though, it's not clear to me wy the one requires casting the pointer type and the other

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

2019-12-24 Thread berni44 via Digitalmars-d-learn
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote: What kind of editor/IDE are you using and which one do you like the most? I'm using sed... - no, just joking. Actually I use jed (because I did for 20 years now) with emacs keybindings in C mode, but I cannot recommend it for D. There

Re: Static linking, specifying binary and test-library folder

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 05:51:37 UTC, Adnan wrote: Hello, how does one: 1. Force static linking (build with `-defaultlib` flag) Generally, when you don't see a buildOption in the docs for the compiler flag you want, use dflags. https://dub.pm/package-format-json.html 2. Specify

Re: array of functions/delegates

2019-12-24 Thread Mike Parker via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 07:37:02 UTC, Rumbu wrote: I am trying to create an array of functions inside a struct. struct S { void f1() {} void f2() {} alias Func = void function(); immutable Func[2] = [, ] } What I got: Error: non-constant expression '' Tried also with

Re: Blog Post #0095: Hardware II - Full Monitor Report

2019-12-24 Thread Russel Winder via Digitalmars-d-learn
On Tue, 2019-12-24 at 09:49 +, Ron Tarrant via Digitalmars-d-learn wrote: > If you liked last week's post, this one will knock your socks > off. Wanna know (programmatically) which monitor your application > window is on? Here's how to find out: >

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

2019-12-24 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2019-12-23 at 08:09 -0800, H. S. Teoh via Digitalmars-d-learn wrote: […] > > No idea, I use vanilla vim (not even with syntax highlighting -- I'm > a > hardcore retro guy). Surely a hardcore retro guy would be using vi not vim? Indeed wouldn't a real hardcore retro guy be using ed? :-)

Blog Post #0095: Hardware II - Full Monitor Report

2019-12-24 Thread Ron Tarrant via Digitalmars-d-learn
If you liked last week's post, this one will knock your socks off. Wanna know (programmatically) which monitor your application window is on? Here's how to find out: https://gtkdcoding.com/2019/12/24/0095-hardware-ii-full-monitor-report.html

Re: array of functions/delegates

2019-12-24 Thread Alex via Digitalmars-d-learn
On Tuesday, 24 December 2019 at 07:37:02 UTC, Rumbu wrote: I am trying to create an array of functions inside a struct. struct S { void f1() {} void f2() {} alias Func = void function(); immutable Func[2] = [, ] } What I got: Error: non-constant expression '' Tried also with

Re: Deprecation: std.stdio.File.ByChunkImpl is not visible

2019-12-24 Thread psyscout via Digitalmars-d-learn
Many thanks H. S. Teoh! It works!