Re: Logging logs in Windows

2023-02-07 Thread Kagamin via Digitalmars-d-learn
On Saturday, 4 February 2023 at 13:31:41 UTC, Alexander Zhirov wrote: I understand that programming under Windows is a shame for a programmer, but is there really no ready-made solution for using the system log in Windows? It would be a logging library like log4j that would have different

Re: ImportC "no include path set"

2023-02-07 Thread Elfstone via Digitalmars-d-learn
On Wednesday, 8 February 2023 at 04:14:21 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 14:01:00 UTC, Elfstone wrote: On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC,

Re: ImportC "no include path set"

2023-02-07 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 14:01:00 UTC, Elfstone wrote: On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: [...] Thanks, it worked, but I still get the

Re: Default arguments

2023-02-07 Thread Salih Dincer via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 09:49:46 UTC, Salih Dincer wrote: Is it a feature or a bug that the code below can be compiled without arguments? You should use `@disable this()` recommended in the relevant article: https://dlang.org/spec/struct.html#disable_default_construction ```d void

Wrong compiler error message regarding overload sets

2023-02-07 Thread Andre Pany via Digitalmars-d-learn
Hi, for the source code below, the compiler says: app.d(26): constructor `app.TObject.this` hides base class function `app.DelphiObject.this` app.d(26): add `alias this = app.DelphiObject.this` to `app.TObject`'s body to merge the overload sets But if I add `alias this =

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-07 Thread ProtectAndHide via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 16:16:48 UTC, Ali Çehreli wrote: On 2/6/23 23:33, ProtectAndHide wrote: > On Monday, 6 February 2023 at 21:46:29 UTC, Ali Çehreli wrote: >> And as 'static class' and 'static struct' are already usable in D, a >> newcomer would definitely be confused with your

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-07 Thread Ali Çehreli via Digitalmars-d-learn
On 2/6/23 23:33, ProtectAndHide wrote: > On Monday, 6 February 2023 at 21:46:29 UTC, Ali Çehreli wrote: >> And as 'static class' and 'static struct' are already usable in D, a >> newcomer would definitely be confused with your "terrible" conclusion. > You being a little agressive don't you

Re: Non-ugly ways to implement a 'static' class or namespace?

2023-02-07 Thread Ali Çehreli via Digitalmars-d-learn
On 2/6/23 23:45, ProtectAndHide wrote: > Well I don't agree that D should boast about things that's its > implemented in an unprincipled way. Here, "unprincipled"[1] is just a descriptive word meaning that D does not insist on certain software engineering methodologies e.g. unlike Java where

Re: ImportC "no include path set"

2023-02-07 Thread Elfstone via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 13:10:44 UTC, ryuukk_ wrote: On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: [...] Thanks, it worked, but I still get the link error. I wasn't expecting to configure include paths and

Re: ImportC "no include path set"

2023-02-07 Thread ryuukk_ via Digitalmars-d-learn
On Tuesday, 7 February 2023 at 06:25:59 UTC, Elfstone wrote: On Monday, 6 February 2023 at 14:35:53 UTC, bachmeier wrote: On Monday, 6 February 2023 at 06:55:02 UTC, Elfstone wrote: So how am I supposed to set the include path? https://dlang.org/spec/importc.html#preprocessor The

Default arguments

2023-02-07 Thread Salih Dincer via Digitalmars-d-learn
Hi All... Is it a feature or a bug that the code below can be compiled without arguments? ```d import std.stdio, std.conv : to; void main() { auto noArgument = Sarr!char(); // it works no argument... assert(noArgument.length == 8); string dlang = "D-lang"; const len =