Enum literals, good? bad? what do you think?

Tejas notrealemail at gmail.com
Thu Jul 22 17:43:37 UTC 2021


On Thursday, 22 July 2021 at 17:28:02 UTC, Walter Bright wrote:
> On 7/22/2021 3:03 AM, rikki cattermole wrote:
>> 
>> On 22/07/2021 8:37 PM, Walter Bright wrote:
>>> On 7/21/2021 11:28 PM, rikki cattermole wrote:
>>>> If you can't describe it using words, use code instead.
>>>
>>> I tried everything, including that. I really cannot explain 
>>> it. It was a very frustrating experience.
>> 
>> Oh hmm. I just went looking for it, the only files regarding 
>> semantic analysis I thought it could be in yup... 700 LOC 
>> method. Found that rather quickly.
>> 
>> That really isn't a good sign I must admit!
>
> The symbol lookup used to be very simple and completely 
> consistent in D. It got a *lot* more complicated as a result of 
> my inability to explain how it worked. It does two passes now, 
> and is very inconsistent.

You mean this isn't true anymore?
https://dlang.org/spec/module.html#name_lookup




More information about the Digitalmars-d mailing list