September 07, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Don Clugston wrote:
>> 1.020 seemed to be stable. Like 1.016, it was around for a long time, and therefore particularly well tested. There were some great bug fixes in 1.018 and 1.019.
>
> Done.
>
>> There's that substantive change about .init which happened in 1.017. If that's permanent, it'd be good to stop further development relying on the old behaviour.
>> I think we need a policy for when the 'stable version' should be updated.
>>
>>
>> Also, I don't see any mention of delimited string literals in the changelog. <g>
>
> Fixed.
According to the docs,
q{/*}*/ }
is the same as
"/*?*/ "
is this a feature to assist macros in parsing strings -- all comments are turned to '?', or is it a mistake?
-- Reiner
|
September 07, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Reiner Pope | Reiner Pope wrote:
> According to the docs,
>
> q{/*}*/ }
>
> is the same as
>
> "/*?*/ "
>
> is this a feature to assist macros in parsing strings -- all comments are turned to '?', or is it a mistake?
It's a typo. Replace the ? with }.
|
September 07, 2007 Re: DMD 1.021 and 2.004 releases (Delimiter Strings & Co.) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > Don Clugston wrote: >> 1.020 seemed to be stable. Like 1.016, it was around for a long time, and therefore particularly well tested. There were some great bug fixes in 1.018 and 1.019. > > Done. > >> There's that substantive change about .init which happened in 1.017. If that's permanent, it'd be good to stop further development relying on the old behaviour. >> I think we need a policy for when the 'stable version' should be updated. >> >> >> Also, I don't see any mention of delimited string literals in the changelog. <g> > > Fixed. Speaking of which, what is the purpose of delimiter strings and the like (token strings, identifier strings) ? Neither the docs or slides go into much detail. So far I can only see use for token strings, in string mixins. -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D |
September 07, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Reiner Pope wrote:
>> According to the docs,
>>
>> q{/*}*/ }
>>
>> is the same as
>>
>> "/*?*/ "
>>
>> is this a feature to assist macros in parsing strings -- all comments are turned to '?', or is it a mistake?
>
> It's a typo. Replace the ? with }.
I also thought it was a ?. Specially since the same example is in the PDF of the conference (slide 36). I also have the doubt of Bruno: what's the use of delimited strings and token strings?
|
September 10, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nathan Reed | "Nathan Reed" <nathaniel.reed@gmail.com> wrote in message news:fbpfek$2qpb$1@digitalmars.com... <snip> > The docs for delimited string literals are now at http://www.digitalmars.com/d/lex.html One thing for sure: these things are going to be a nightmare to syntax-highlight! Stewart. |
September 10, 2007 Re: Compile error: QuadPart is not a member of LARGE_INTEGER (Re: DMD 1.021 and 2.004 releases) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sascha Katzner | "Sascha Katzner" <sorry.no@spam.invalid> wrote in message news:fbobj2$1tdh$1@digitalmars.com... > yidabu wrote: >> build every program, cause: >> Compile error: QuadPart is not a member of LARGE_INTEGER > > I've just encountered the same error ("Error: 'QuadPart' is not a member of 'LARGE_INTEGER'") when I tried to compile the WindowsAPI sources. Could be related to: http://d.puremagic.com/issues/show_bug.cgi?id=1473 Indeed. I might have to go back to 1.020 pending a fix. There are quite a few regressions. http://d.puremagic.com/issues/buglist.cgi?version=1.021&bug_severity=regression 1485 has broken my utility library. 1484 may have broken a project or two of mine as well. Stewart. |
September 10, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote: > "Nathan Reed" <nathaniel.reed@gmail.com> wrote in message news:fbpfek$2qpb$1@digitalmars.com... > <snip> > >> The docs for delimited string literals are now at http://www.digitalmars.com/d/lex.html > > > One thing for sure: these things are going to be a nightmare to syntax-highlight! > > Stewart. I've already updated the Pygments syntax highlighter with this new syntax. They are not fundamentally any harder to highlight than the existing nesting /+ +/ comments. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org |
September 10, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kirk McDonald | "Kirk McDonald" <kirklin.mcdonald@gmail.com> wrote in message news:fc2u8u$21d9$1@digitalmars.com... <snip> [delimited string literals] > I've already updated the Pygments syntax highlighter with this new syntax. They are not fundamentally any harder to highlight than the existing nesting /+ +/ comments. Maybe. But still, nested comments are probably likely to be supported by more code editors than such an unusual feature as delimited strings. Stewart. |
September 10, 2007 Re: DMD 1.021 and 2.004 releases (Delimiter Strings & Co.) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bruno Medeiros | Bruno Medeiros wrote:
> Speaking of which, what is the purpose of delimiter strings and the like (token strings, identifier strings) ? Neither the docs or slides go into much detail. So far I can only see use for token strings, in string mixins.
Makes it easier to insert arbitrary text as a string without having to worry about an inadvertent delimiter inside the string.
|
September 10, 2007 Re: DMD 1.021 and 2.004 releases | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote:
> Maybe. But still, nested comments are probably likely to be supported by more code editors than such an unusual feature as delimited strings.
Delimited strings are standard practice in Perl. C++0x is getting delimited strings. Code editors that can't handle them are going to become rapidly obsolete.
The more unusual feature is the token delimited strings.
|
Copyright © 1999-2021 by the D Language Foundation