April 08, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | On 4/8/2012 8:58 PM, Vladimir Panteleev wrote: > > I have hit another problem: > > import std.algorithm; > > struct S > { > int n; > > string toString() > { > return null; > } > } > > > void main() > { > S*[] all; > sort!q{a.n > b.n}(all); > } > > Compiling the above program prints a wall of error messages. > > I don't think this is related to the pure/nothrow. Seems to be an unrelated regression from 2.058. > It has nothing to do with toString. The following fails in the same way: import std.algorithm; struct S { int n; } void main() { S[] all; sort!q{a.n > b.n}(all); } _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 09, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Mon, 09 Apr 2012 07:14:32 +0300, Walter Bright <walter@digitalmars.com> wrote: > It has nothing to do with toString. The following fails in the same way: > > import std.algorithm; > > struct S > { > int n; > } > > > void main() > { > S[] all; > sort!q{a.n > b.n}(all); > } That program compiles for me. Removing either toString or the asterisk (array of pointers to structs -> array of structs) makes the errors go away. -- Best regards, Vladimir mailto:vladimir@thecybershadow.net _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 08, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | You're right. I wonder what I was doing wrong. On 4/8/2012 9:17 PM, Vladimir Panteleev wrote: > > That program compiles for me. > > Removing either toString or the asterisk (array of pointers to structs -> array of structs) makes the errors go away. > _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 08, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Also, I can't reproduce your previous bug now. On 4/8/2012 9:25 PM, Walter Bright wrote: > You're right. I wonder what I was doing wrong. > > On 4/8/2012 9:17 PM, Vladimir Panteleev wrote: >> >> That program compiles for me. >> >> Removing either toString or the asterisk (array of pointers to structs -> array of structs) makes the errors go away. >> > _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 09, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Mon, 09 Apr 2012 07:34:09 +0300, Walter Bright <walter@digitalmars.com> wrote: > Also, I can't reproduce your previous bug now. Apparently it only occurs with -debug ? -- Best regards, Vladimir mailto:vladimir@thecybershadow.net _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 08, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | just checked, yes it happens with -debug On 4/8/2012 9:54 PM, Vladimir Panteleev wrote: > On Mon, 09 Apr 2012 07:34:09 +0300, Walter Bright <walter@digitalmars.com> wrote: > >> Also, I can't reproduce your previous bug now. > > Apparently it only occurs with -debug ? > _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 09, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | Outh, this is std.format regression, not dmd's. Kenji Hara 2012$BG/(B4$B7n(B9$BF|(B13:54 Vladimir Panteleev <thecybershadow.lists@gmail.com>: > On Mon, 09 Apr 2012 07:34:09 +0300, Walter Bright <walter@digitalmars.com> wrote: > >> Also, I can't reproduce your previous bug now. > > > Apparently it only occurs with -debug ? > > > -- > Best regards, > Vladimir mailto:vladimir@thecybershadow.net > _______________________________________________ > dmd-beta mailing list > dmd-beta@puremagic.com > http://lists.puremagic.com/mailman/listinfo/dmd-beta _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 08, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | It also fails with 2.058, so it is not a regression. On 4/8/2012 9:54 PM, Vladimir Panteleev wrote: > On Mon, 09 Apr 2012 07:34:09 +0300, Walter Bright <walter@digitalmars.com> wrote: > >> Also, I can't reproduce your previous bug now. > > Apparently it only occurs with -debug ? > _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
April 09, 2012 Re: [dmd-beta] Fighting with 2.059 and not quite winning | ||||
---|---|---|---|---|
| ||||
Posted in reply to kenji hara | Filed and posted a pull request. http://d.puremagic.com/issues/show_bug.cgi?id=7869 Kenji Hara 2012$BG/(B4$B7n(B9$BF|(B14:08 kenji hara <k.hara.pg@gmail.com>: > Outh, this is std.format regression, not dmd's. > > Kenji Hara > > 2012$BG/(B4$B7n(B9$BF|(B13:54 Vladimir Panteleev <thecybershadow.lists@gmail.com>: >> On Mon, 09 Apr 2012 07:34:09 +0300, Walter Bright <walter@digitalmars.com> wrote: >> >>> Also, I can't reproduce your previous bug now. >> >> >> Apparently it only occurs with -debug ? >> >> >> -- >> Best regards, >> Vladimir mailto:vladimir@thecybershadow.net >> _______________________________________________ >> dmd-beta mailing list >> dmd-beta@puremagic.com >> http://lists.puremagic.com/mailman/listinfo/dmd-beta _______________________________________________ dmd-beta mailing list dmd-beta@puremagic.com http://lists.puremagic.com/mailman/listinfo/dmd-beta |
Copyright © 1999-2021 by the D Language Foundation