Re: Log rotation in std.logger.filelogger

2023-05-23 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 23 May 2023 at 14:10:52 UTC, apz28 wrote: On Tuesday, 23 May 2023 at 13:13:18 UTC, Andrew wrote: On Tuesday, 23 May 2023 at 11:21:07 UTC, apz28 wrote: [...] Please don't take this as an insult, as I've also written my own logging library lol. But I have a feeling that our efforts

Re: Error: template instance does not match template declaration

2021-11-17 Thread Vitalii via Digitalmars-d-learn
On Wednesday, 17 November 2021 at 18:00:59 UTC, Steven Schveighoffer wrote: On 11/17/21 7:55 AM, Vitalii wrote: [...] Template parameters are of 3 types: 1. A type parameter. This has a single symbol name, and represents a type *provided by the caller*. [...] Steve, thank you very much f

Re: Error: template instance does not match template declaration

2021-11-17 Thread Vitalii via Digitalmars-d-learn
Thank you for response, Tejas! What I intended to do was make a class with only two states ("Inspect" - do some analysis, "Execute" - do some stuff). That's why I tried to use template specialization. The following code compiles successfully, but return *"fun with unknown"* instead of *"fun

Error: template instance does not match template declaration

2021-11-17 Thread Vitalii via Digitalmars-d-learn
Hello! I am getting the following error: ``` inst.d(8): Error: template instance `Worker!(Mode.Inspect)` does not match template declaration `Worker(mode : Mode) ``` when compile next code: ``` enum Mode { Inspect, Execute } class Worker(mode : Mode) { this() {} } void main() {

Re: Why filling AA in shared library freezes execution?

2021-01-30 Thread Vitalii via Digitalmars-d-learn
On Friday, 29 January 2021 at 01:23:20 UTC, Siemargl wrote: On Friday, 29 January 2021 at 00:45:12 UTC, Siemargl wrote: Then i modify program, just removing DLL, copying TestFun() in main module and it runs. Same compiler -m64 target. Ups. Sorry, I just forget copy test_dll.dll inside VM :-)

Re: Why filling AA in shared library freezes execution?

2021-01-26 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 26 January 2021 at 14:12:17 UTC, Adam D. Ruppe wrote: On Monday, 25 January 2021 at 21:48:10 UTC, Vitalii wrote: Q: Why filling assoc.array in shared library freeze execution? D exes loading D dlls are very broken on Windows. You can kinda make it work but there's a lot of bad des

Re: Why filling AA in shared library freezes execution?

2021-01-26 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 26 January 2021 at 08:14:10 UTC, frame wrote: On Tuesday, 26 January 2021 at 06:53:22 UTC, Vitalii wrote: It's quite unexpected for me that nobody give me some help about usage of AA in shared library. Nobody use shared library? Nobody use AA? Post with trivial questions about OpA

Re: Why filling AA in shared library freezes execution?

2021-01-25 Thread Vitalii via Digitalmars-d-learn
On Tuesday, 26 January 2021 at 05:37:02 UTC, Mike Parker wrote: On Monday, 25 January 2021 at 21:48:10 UTC, Vitalii wrote: I'm sorry to post it for third time, but I haven't received any helpful advice. Please don't start multiple threads for the same topic. If no one has helped you yet, it

Why filling AA in shared library freezes execution?

2021-01-25 Thread Vitalii via Digitalmars-d-learn
I'm sorry to post it for third time, but I haven't received any helpful advice. Is it too simple and nooby? Could you please just give me link to the similar code/discussion? Q: Why filling assoc.array in shared library freeze execution? Try to run test_dll_exe.exe several times: // test_d

Re: Dll crash in simplest case

2021-01-25 Thread Vitalii via Digitalmars-d-learn
On Monday, 25 January 2021 at 10:26:20 UTC, frame wrote: On Monday, 25 January 2021 at 07:58:01 UTC, Vitalii wrote: Hello everyone! I want to create shared library that buffer some data and do some calculations, another program will use it. I wonder how this simplest code lead to crash (freeze)

Dll crash in simplest case

2021-01-25 Thread Vitalii via Digitalmars-d-learn
Hello everyone! I want to create shared library that buffer some data and do some calculations, another program will use it. I wonder how this simplest code lead to crash (freeze) of dll: --- // test_dll.d import std.stdio; import std.file; import core.runtime; import core.sys.windows.windows; i

Re: Using_string_mixins_for_logging error

2020-07-15 Thread Vitalii via Digitalmars-d-learn
Many thanks!

Using_string_mixins_for_logging error

2020-07-15 Thread Vitalii via Digitalmars-d-learn
Hello everyone! I try to compile this recipe with dmd (2.089.0), ldc2 (1.18.0): https://wiki.dlang.org/Using_string_mixins_for_logging but get the same error: mixin_log.d(64): Error: basic type expected, not __FUNCTION__ mixin_log.d(64): Error: declaration expected, not __FUNCTION__ in that par