More fun with autodecoding

Steven Schveighoffer schveiguy at gmail.com
Tue Sep 11 13:08:46 UTC 2018


On 9/10/18 7:00 PM, Nicholas Wilson wrote:
> On Monday, 10 September 2018 at 20:44:46 UTC, Andrei Alexandrescu wrote:
>> On 9/10/18 12:46 PM, Steven Schveighoffer wrote:
>>> On 9/10/18 8:58 AM, Steven Schveighoffer wrote:
>>>> I'll have to figure out why my specialized range doesn't allow 
>>>> splitting based on " ".
>>>
>>> And the answer is: I'm an idiot. Forgot to define empty :) Also my 
>>> slicing operator accepted ints and not size_t.
>>
>> I guess a better error message would be in order.
> 
> https://github.com/dlang/DIPs/pull/131 will help narrow down the cause.

While this would help eventually, I'd prefer something that just 
transforms all the existing code into useful error messages. See my 
response to Andrei.

-Steve


More information about the Digitalmars-d mailing list