Re: Counting an initialised array, and segments

2023-06-25 Thread novice2 via Digitalmars-d-learn
``` import std; auto arr = [dchar(' '), '\t', 0x0a, 0x10]; void main() { writeln("Hello D: ", typeid(arr)); } ```

Re: Warning The package will no longer be detected starting from v1.42.0

2023-06-25 Thread Soulsbane via Digitalmars-d-learn
On Sunday, 25 June 2023 at 12:21:52 UTC, Mathias LANG wrote: On Sunday, 25 June 2023 at 04:50:42 UTC, Soulsbane wrote: I'm guessing it's caused by this https://github.com/dlang/dub/pull/2610. What's the fix for this exactly? Thanks! A fix would be to do the following: ``` for package in $(

Counting an initialised array, and segments

2023-06-25 Thread Cecil Ward via Digitalmars-d-learn
I recently had some problems dchar[] arr = [ ‘ ‘, TAB, CR, LF … ]; and I got errors from the compiler which led to me having to count the elements in the initialiser and declare the array with an explicit size. I don’t want the array to be mutable so I later added immutable to it, but that di

Re: Large statics

2023-06-25 Thread Cecil Ward via Digitalmars-d-learn
On Sunday, 25 June 2023 at 21:08:13 UTC, Ali Çehreli wrote: On 6/25/23 13:41, Cecil Ward wrote: > The docs say that there is a limit on the size of large statics Customers (at least Weka) did request larger statics in the past. Since they use LDC, the limit was removed for LDC. I did not try

Re: Large statics

2023-06-25 Thread Ali Çehreli via Digitalmars-d-learn
On 6/25/23 13:41, Cecil Ward wrote: > The docs say that there is a limit on the size of large statics Customers (at least Weka) did request larger statics in the past. Since they use LDC, the limit was removed for LDC. I did not try it. :) Ali

Large statics

2023-06-25 Thread Cecil Ward via Digitalmars-d-learn
The docs say that there is a limit on the size of large statics of 16 MB. Is it desirable to remove this limit ? I realise that with new code there is the option to alloc the space instead where the static is uninitialised. There are other possibilities, such as an object filled with compile-ti

Re: Warning The package will no longer be detected starting from v1.42.0

2023-06-25 Thread Mathias LANG via Digitalmars-d-learn
On Sunday, 25 June 2023 at 04:50:42 UTC, Soulsbane wrote: I'm guessing it's caused by this https://github.com/dlang/dub/pull/2610. What's the fix for this exactly? Thanks! A fix would be to do the following: ``` for package in $($HOME/Projects/D/libs/*); do mv -v $package $package/master/

Re: Warning The package will no longer be detected starting from v1.42.0

2023-06-25 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Unfortunately yes, this appears to be an unintended side effect of that PR. The search paths in dub are all implemented together, one set of logic. So add-path probably was never doing what was expected of it. You will need to switch to add-local for each package, unless you want to work on du