Thinking about the difference between fixed and 'dynamic' arrays.
    Stefan Koch 
    uplink.coder at googlemail.com
       
    Mon Dec  5 19:46:54 UTC 2022
    
    
  
On Sunday, 4 December 2022 at 09:54:53 UTC, Salih Dincer wrote:
> Recently DIP1044 was published about enum and although we can 
> use `with()` instead we waste time unnecessarily...
With cannot be used in calls.
Hence when calling a function you need to either spell out the 
enum type or wrap the call in a with or multiple withs.
> I've never tried it, but the feature shown below is not 
> available in D! Why not such good things?
>
> ```d
> enum Foo
> {
>      a0 = 1,
>      a1
> }
>
> enum Bar: Foo
> {
>     a2 // 3
> }
> ```
>
> Thanks...
>
> SDB at 79
This is easy to add and costs almost no complexity
    
    
More information about the Digitalmars-d-learn
mailing list