Thread overview | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
April 12, 2006 DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Had to do an update since --gc-sections broke exception handling. Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'. http://www.digitalmars.com/d/changelog.html |
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says... > >Had to do an update since --gc-sections broke exception handling. > >Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'. > >http://www.digitalmars.com/d/changelog.html You're not kidding. I found it somewhat humorous that the linked page exhibits the very problem you're citing: * Numeric suffix '|' now deprecated, use 'L' instead. * Floating point suffix '|' now deprecated, use 'i' instead. (pipes used for effect) - EricAnderton at yahoo |
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to pragma | pragma wrote:
> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>> Had to do an update since --gc-sections broke exception handling.
>>
>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>
>> http://www.digitalmars.com/d/changelog.html
>
> You're not kidding. I found it somewhat humorous that the linked page exhibits
> the very problem you're citing:
>
> * Numeric suffix '|' now deprecated, use 'L' instead.
> * Floating point suffix '|' now deprecated, use 'i' instead.
Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
|
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> pragma wrote:
>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>>> Had to do an update since --gc-sections broke exception handling.
>>>
>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>>
>>> http://www.digitalmars.com/d/changelog.html
>>
>> You're not kidding. I found it somewhat humorous that the linked page exhibits
>> the very problem you're citing:
>>
>> * Numeric suffix '|' now deprecated, use 'L' instead.
>> * Floating point suffix '|' now deprecated, use 'i' instead.
>
> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
That seems to me to be going too far. Let a style guide do that work, that is its natural role.
|
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | In article <e1jjka$649$1@digitaldaemon.com>, Walter Bright says... > >pragma wrote: >> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says... >>> Had to do an update since --gc-sections broke exception handling. >>> >>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'. >>> >>> http://www.digitalmars.com/d/changelog.html >> >> You're not kidding. I found it somewhat humorous that the linked page exhibits the very problem you're citing: >> >> * Numeric suffix '|' now deprecated, use 'L' instead. >> * Floating point suffix '|' now deprecated, use 'i' instead. > >Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far. That'd be going too far. When I'm programming, I use a font that lets me see what I'm typing. I don't write programs in Arial or whichever font makes those all look the same. Similarly, D allows people to use Chinese characters as variables that might show up as blocks or question marks in my favorite font, but that's my problem. If my font can't display their code, it's my responsibility to use a suitable font. It's not the language's job to make all programs clearly visible in all fonts. jcc7 |
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> pragma wrote:
>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says...
>>> Had to do an update since --gc-sections broke exception handling.
>>>
>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>>>
>>> http://www.digitalmars.com/d/changelog.html
>>
>> You're not kidding. I found it somewhat humorous that the linked page exhibits
>> the very problem you're citing:
>>
>> * Numeric suffix '|' now deprecated, use 'L' instead.
>> * Floating point suffix '|' now deprecated, use 'i' instead.
>
> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far.
I've wondered the same thing. I never use those names for the confusion they can cause, but haven't been able to decide whether a more rigid enforcement might be too draconian.
Sean
|
April 12, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Sean Kelly wrote: > Walter Bright wrote: >> pragma wrote: >>> In article <e1jeql$2vcl$1@digitaldaemon.com>, Walter Bright says... >>> >>>> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'. >>>> [...] >> >> Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far. > > > I've wondered the same thing. I never use those names for the confusion they can cause, but haven't been able to decide whether a more rigid enforcement might be too draconian. > > > Sean A code standard checker would be interesting. lexical & syntax (maybe semantic) front end + some sort of pattern recognition language? |
April 13, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > Yup. I got this idea from the JSF document on C++ coding standards. I've also wondered about disallowing single letter declarations when those letters are lower case l, upper case I, or upper case O, or if that is going too far. Hm... I think bigger part of programmers use syntax highlighting in their editors, so numbers and identifiers have different colors. This is sufficient to distinguish problem characters. -- Victor (aka nail) Nakoryakov nail-mail<at>mail<dot>ru Krasnoznamensk, Moscow, Russia |
April 13, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Had to do an update since --gc-sections broke exception handling.
>
> Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'.
>
> http://www.digitalmars.com/d/changelog.html
Thanks Walter,
Do you ever sleep ;)
|
April 13, 2006 Re: DMD 0.154 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > Had to do an update since --gc-sections broke exception handling. > > Also, 'I' and 'l' integer suffixes are deprecated, because in many fonts they are indistinguishable from each other and from '1'. > > http://www.digitalmars.com/d/changelog.html I is anyone else haveing probles with .154 on linux? this compiles /******************************/ import std.stdio; void main() { writef("hello world\n"); } /******************************/ this compiles on winXP but not linux /******************************/ import std.stream; void main() { auto s = new BugStream(); } class BugStream : Stream { this(){} size_t readBlock(void* buffer, size_t size){} size_t writeBlock(void* buffer, size_t size){} bool seekable(){return false;} ulong seek(long offset, SeekPos whence) { throw new SeekException("BugStream can't seek"); } } /******************************/ |
Copyright © 1999-2021 by the D Language Foundation