Re: Using C++ Classes From D: dmd cannot link, while ldc segfault

2024-01-26 Thread zjh via Digitalmars-d-learn
On Friday, 26 January 2024 at 14:46:08 UTC, Emmanuel Danso Nyarko wrote: Yes, this is a project currently in progress. Vector was only working for windows but we have it working on linux but it's not yet ready to be used that's why you could only use it from a standalone fork.

Re: std.sumtype nested SumTypes

2024-01-26 Thread NonNull via Digitalmars-d-learn
On Monday, 22 January 2024 at 21:36:47 UTC, Paul Backus wrote: SumType does not do this automatically (because sometimes you might want to keep the inner SumTypes separate), but you can do it yourself like this: alias A = SumType!(X, Y); alias B = SumType!(Z, W); alias C =

Re: Using C++ Classes From D: dmd cannot link, while ldc segfault

2024-01-26 Thread Emmanuel Danso Nyarko via Digitalmars-d-learn
On Friday, 26 January 2024 at 13:40:12 UTC, Matheus Catarino wrote: On Friday, 26 January 2024 at 09:06:16 UTC, Emmanuel Danso Nyarko wrote: On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino wrote: https://forum.dlang.org/post/kawfhminmtmwbmkzh...@forum.dlang.org On Monday, 19

Re: Using C++ Classes From D: dmd cannot link, while ldc segfault

2024-01-26 Thread Matheus Catarino via Digitalmars-d-learn
On Friday, 26 January 2024 at 09:06:16 UTC, Emmanuel Danso Nyarko wrote: On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino wrote: https://forum.dlang.org/post/kawfhminmtmwbmkzh...@forum.dlang.org On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote: LDC - the LLVM D compiler

Re: Accessing array elements with a pointer-to-array

2024-01-26 Thread Sergey via Digitalmars-d-learn
On Friday, 26 January 2024 at 11:38:39 UTC, Stephen Tashiro wrote: On Thursday, 25 January 2024 at 20:36:49 UTC, Kagamin wrote: On Thursday, 25 January 2024 at 20:11:05 UTC, Stephen Tashiro wrote: void main() { ulong [3][2] static_array = [ [0,1,2],[3,4,5] ];

Re: Accessing array elements with a pointer-to-array

2024-01-26 Thread Stephen Tashiro via Digitalmars-d-learn
On Thursday, 25 January 2024 at 20:36:49 UTC, Kagamin wrote: On Thursday, 25 January 2024 at 20:11:05 UTC, Stephen Tashiro wrote: void main() { ulong [3][2] static_array = [ [0,1,2],[3,4,5] ]; static_array[2][1] = 6; } The static array has length 2, so index 2 is out

Re: Using C++ Classes From D: dmd cannot link, while ldc segfault

2024-01-26 Thread Emmanuel Danso Nyarko via Digitalmars-d-learn
On Thursday, 25 January 2024 at 21:41:36 UTC, Matheus Catarino wrote: https://forum.dlang.org/post/kawfhminmtmwbmkzh...@forum.dlang.org On Monday, 19 June 2023 at 06:11:59 UTC, mw wrote: LDC - the LLVM D compiler (1.32.2): ``` main.d(32): Error: undefined identifier `vector` in module