Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
March 07, 2012 [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
I gets errors when building d_do_test. There are multiple errors in each of these files, I've shown only one. druntime/src/core/sys/posix/sys/wait.d(78): octal literals 0177 are deprecated, use std.conv.octal!177 instead druntime/src/core/sys/posix/fcntl.d(103): octal literals 0100 are deprecated, use std.conv.octal!100 instead druntime/src/core/sys/posix/sys/stat.d(142): octal literals 0400 are deprecated, use std.conv.octal!400 instead I was also disturbed to notice that the druntime modules are ALL built with the -d flag, so this isn't showing up when building druntime. But I don't understand why this error isn't showing up in the autotester, when building d_do_test. _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 08, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | I assume because it uses druntime/import not druntime/src, and the octal literals don't make it into the di files. druntime also contains a bunch of volatile statements. On Wed, Mar 7, 2012 at 23:01, Don Clugston <dclugston@googlemail.com> wrote: > I gets errors when building d_do_test. There are multiple errors in each of these files, I've shown only one. > > druntime/src/core/sys/posix/sys/wait.d(78): octal literals 0177 are deprecated, use std.conv.octal!177 instead druntime/src/core/sys/posix/fcntl.d(103): octal literals 0100 are deprecated, use std.conv.octal!100 instead druntime/src/core/sys/posix/sys/stat.d(142): octal literals 0400 are deprecated, use std.conv.octal!400 instead > > I was also disturbed to notice that the druntime modules are ALL built > with the -d flag, so this isn't showing up when building druntime. > But I don't understand why this error isn't showing up in the > autotester, when building d_do_test. > _______________________________________________ > phobos mailing list > phobos@puremagic.com > http://lists.puremagic.com/mailman/listinfo/phobos _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 07, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | On Wednesday, March 07, 2012 13:01:12 Don Clugston wrote: > I was also disturbed to notice that the druntime modules are ALL built with the -d flag, so this isn't showing up when building druntime. I believe that druntime and Phobos are always both build with -d, and since there _is_ stuff in them which is marked as deprecated, they pretty much have to be, I believe, as annoying as that may be. Now, as for the octal literals, I'm not quite sure what we're going to do about that, since the new way to create them currently resides in Phobos. - Jonathan M Davis _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 07, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | On Mar 7, 2012, at 4:01 AM, Don Clugston wrote: > I gets errors when building d_do_test. There are multiple errors in each of these files, I've shown only one. > > druntime/src/core/sys/posix/sys/wait.d(78): octal literals 0177 are deprecated, use std.conv.octal!177 instead druntime/src/core/sys/posix/fcntl.d(103): octal literals 0100 are deprecated, use std.conv.octal!100 instead druntime/src/core/sys/posix/sys/stat.d(142): octal literals 0400 are deprecated, use std.conv.octal!400 instead Ugh. These should be changed to hex. > I was also disturbed to notice that the druntime modules are ALL built with the -d flag, so this isn't showing up when building druntime. But I don't understand why this error isn't showing up in the autotester, when building d_do_test. Really, only core.thread needs to be build with -d (since it uses "volatile"). _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 07, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | On 7 Mar 2012, at 19:58, Sean Kelly wrote: > Really, only core.thread needs to be build with -d (since it uses "volatile"). By the way, is there any reason for which these can't be replaced with core.atomic-s? David _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 07, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Nadlinger | On Mar 7, 2012, at 11:36 AM, David Nadlinger wrote: > On 7 Mar 2012, at 19:58, Sean Kelly wrote: >> Really, only core.thread needs to be build with -d (since it uses "volatile"). > > By the way, is there any reason for which these can't be replaced with core.atomic-s? I'd have to look at the code, but that should work fine. _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
March 07, 2012 Re: [phobos] Octal literals in druntime/src/core/sys/posix/ | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | On 7 Mar 2012, at 22:17, Sean Kelly wrote: > I'd have to look at the code, but that should work fine. Okay, added it to my ever-growing core development to-do list. David _______________________________________________ phobos mailing list phobos@puremagic.com http://lists.puremagic.com/mailman/listinfo/phobos |
Copyright © 1999-2021 by the D Language Foundation