Re: Unclear error message

2020-11-10 Thread SealabJaster via Digitalmars-d-learn
On Wednesday, 11 November 2020 at 02:05:33 UTC, H. S. Teoh wrote: Definitely. Bad/confusing error messages should always be improved. Please file a bug at: http://issues.dlang.org/ T https://issues.dlang.org/show_bug.cgi?id=21377 I wonder if this is the same as: https://issues.dla

Re: Unclear error message

2020-11-10 Thread H. S. Teoh via Digitalmars-d-learn
On Wed, Nov 11, 2020 at 01:05:21AM +, SealabJaster via Digitalmars-d-learn wrote: > Please see the code at https://run.dlang.io/is/Yjidek [Quoting code in full here for future reference] > struct PreValidate > { > alias FuncT = bool delegate(string arg); > > FuncT func; > > thi

Re: Unclear error message

2020-11-10 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 11 November 2020 at 01:05:21 UTC, SealabJaster wrote: Please see the code at https://run.dlang.io/is/Yjidek As I understand the error is caused by trying to provide a delegate when there's no context to provide. Not complaining about that. However what I am complaining about is

Unclear error message

2020-11-10 Thread SealabJaster via Digitalmars-d-learn
Please see the code at https://run.dlang.io/is/Yjidek As I understand the error is caused by trying to provide a delegate when there's no context to provide. Not complaining about that. However what I am complaining about is about the error message: `onlineapp.d(31): Error: delegate onlineap