April 27, 2009 Re: dmd 2.029 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Georg Wrede wrote:
>> Walter Bright wrote:
>>> Lutger wrote:
>>>> what the hell...this code can't be human.
>>>
>>> I was replaced by Colossus years ago.
>>
>> Michael A. Jackson wouldn't approve 1175 gotos in 113 files.
>
>
> I see I was being too obscure.
> See "Colossus, the Forbin Project" http://us.imdb.com/title/tt0064177/
To clarify: you are *not* 80 feet high and protector of Rhodes?
|
April 27, 2009 Re: dmd 2.029 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote:
> Walter Bright wrote:
>> Stewart Gordon wrote:
>>> Walter, how often do you update your working copy from the SVN? Obviously less than once every 2 releases.
>>
>> As far as I know, it is current. Everything got checked in.
>
> So how has the fix for
> http://d.puremagic.com/issues/show_bug.cgi?id=2580
> (and probably others) not been included?
The code fix for this is in. You can see it in dmd/src/compiler/dmd/dmain2.d: rt_init(). I haven't updated the documentation yet though (this last release took me a bit by surprise)--I'll take care of that before the next release.
|
April 27, 2009 Re: dmd 2.029 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to renoX | "renoX" <renosky@free.fr> wrote in message news:49F56A74.4000606@free.fr... > Nick Sabalausky a écrit : >> "bearophile" <bearophileHUGS@lycos.com> wrote in message news:gsipn1$1bng$1@digitalmars.com... >>> Andrei Alexandrescu: >>>> If it were an error, I wouldn't let it go. >>> It's an error. It will lead to troubles. >>> >> >> Sometimes it is an error, but there are times when it isn't: > [cut] >> Call List In Psuedo-Japanese: >> For Each Person Where Name="Smith": "SmithSan {LoopIndex}'s DenwaBango: >> {Phone}" >> --------------------- >> >> So then the report creation code: >> >> --------------------- >> foreach(int i, Person p; people.subset(customReport.whereClause)) >> writefln(customReport.formatStr, i, p.id, p.first, p.last, p.phone, >> p.zip); >> --------------------- >> >> That would be very difficult/limiting if every arg had to be used in the format string. > > Mmmh, is {LoopIndex} correct? It should be {i} I think and I would argue that this format string should generate an error (something better than a runtime exception would be nice but I'm not sure that this is possible). > That was just for illustrative purposes. > >> (Incidentally, this example also demonstrates why I consider C#/Tango-style string formatting superior to C/Phobos-style) > > I think that named format string are much superior to positional format string as they are easier to read/write.. > Actually, I was referring to the ability to specify them out-of-order, repeat them, etc. (I didn't realize that Phobos's writef had recently gained that ability). To my knowledge, C#/Tango string formatting don't actually support named strings, only numerical ones. I was just using names for illustrative purposes, and (unclearly) implying that the app would translate those named formats into numerical ones before passing them along to the string output function. |
April 28, 2009 Re: dmd 2.029 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Georg Wrede wrote:
>> Walter Bright wrote:
>>> Lutger wrote:
>>>> what the hell...this code can't be human.
>>>
>>> I was replaced by Colossus years ago.
>>
>> Michael A. Jackson wouldn't approve 1175 gotos in 113 files.
>
> I see I was being too obscure.
> See "Colossus, the Forbin Project" http://us.imdb.com/title/tt0064177/
Heh, by an incredible coincidence, it aired here a couple of weeks ago. Maybe that's why I felt the reference too obvious to comment on.
I liked the end. Not what I expected. And more thought provoking like this. It also gave some new depth about understanding the Terminator.
|
April 29, 2009 Re: dmd 2.029 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Georg Wrede | Georg Wrede wrote:
> Walter Bright wrote:
>> I see I was being too obscure.
>> See "Colossus, the Forbin Project" http://us.imdb.com/title/tt0064177/
>
> Heh, by an incredible coincidence, it aired here a couple of weeks ago. Maybe that's why I felt the reference too obvious to comment on.
I think it is an overlooked classic.
|
Copyright © 1999-2021 by the D Language Foundation