|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.announce - dmd 1.056 and 2.040 release
http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 29 2010
First, i would like to say: thank you.
Second, i would like to have your opinion:
"added static/final function implementations to interfaces"
Could you allow normal function imp to interfaces too? Interface will
look like c++ struct, but the difference is the way inheritance
organized, so that diamond shape problem does not exist.
And you could simplify something too. For example: for comparison
between classes, we just inherit Comparable interface, which has
implementation of many op<, op>, op<=, op>=, ...
(Well, in fact, this is done in Scala, it is named linearization). :)
For example:
class Biology
{
......
}
interface Animal
{
void eat() { ... }
void run() { ... }
}
interface Bird
{
void fly() { ... }
}
class Penguin : Biology, Animal, Bird
{
}
The left most class / interface will be the top super. Each interface
remain will solve its parent at definition site (line "class Penguin :
Biology, Animal, Bird")
Result: Penguin -> Bird -> Animal -> Biology.
Details of linearization are in page 52, ScalaRef.
http://www.scala-lang.org/sites/default/files/linuxsoft_archives/docu/files/ScalaReference.pdf
Thanks.
Jan 29 2010
On 30-1-2010 15:53, The Anh Tran wrote:First, i would like to say: thank you. Second, i would like to have your opinion: "added static/final function implementations to interfaces" Could you allow normal function imp to interfaces too? Interface will look like c++ struct, but the difference is the way inheritance organized, so that diamond shape problem does not exist. Jan 30 2010
On Jan 30, 10 15:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
On 30.01.2010 09:32, KennyTM~ wrote:On Jan 30, 10 15:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
This release makes me smile. Thank you so much Walter, and everybody who contributed too. Jan 30 2010
Regarding this:
Bugzilla 3556: version(CTFE)
I have written the following little D2 program:
import std.stdio: printf;
static if (__ctfe) {
int foo() {
return 1;
}
} else {
int foo() {
return 2;
}
}
enum int x1 = foo();
void main() {
int x2 = foo();
printf("%d %d\n", x1, x2);
}
But it doesn't work, I don't understand why.
(Isn't the usage of __ctfe normally done at compile time? Otherwise this
feature introduces another very special case in the language).
----------------
Can you tell me the purpose of the following 3 changes?
ModuleInfo changed from class to struct
added static/final function implementations to interfaces
http://dsource.org/projects/dmd/changeset/339
Thank you,
bye,
bearophile
Jan 30 2010
== Quote from bearophile (bearophileHUGS lycos.com)'s article Jan 30 2010
bearophile wrote:Can you tell me the purpose of the following 3 changes? ModuleInfo changed from class to struct Jan 30 2010
On 1/30/10 08:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
Jacob Carlborg wrote:On 1/30/10 08:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
On 1/30/10 14:24, grauzone wrote:Jacob Carlborg wrote:On 1/30/10 08:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
On Sat, 30 Jan 2010 10:56:28 -0500, Ary Borenszweig <ary esperanto.org.ar> wrote:Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
Ary Borenszweig wrote:Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
Walter Bright Wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
Yao G wrote:The exception is thrown from the runtime initializer. It used to work with the previous DMD version (2.039). I think that the change of ModuleInfo from class to struct somehow affected this (just speculating). Jan 30 2010
$ dmd Digital Mars D Compiler v2.040 Copyright (c) 1999-2009 by Digital Mars written by Walter Bright Interestingly, copyright date is still 2009. Is this a bug or a feature? -- Michel Fortin michel.fortin michelf.com http://michelf.com/ Jan 30 2010
Michel Fortin wrote:$ dmd Digital Mars D Compiler v2.040 Copyright (c) 1999-2009 by Digital Mars written by Walter Bright Interestingly, copyright date is still 2009. Is this a bug or a feature? Jan 30 2010
Walter Bright Wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
strtr wrote:Walter Bright Wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 31 2010
Walter Bright <newshound1 digitalmars.com> wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
On 2010-01-30 02:13:48 -0500, Walter Bright <newshound1 digitalmars.com> said:http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Jan 30 2010
Michel Fortin wrote:It's great to have TLS working on Mac OS X. But it looks like it suffers from the same linking problem as the module info section. I've added some useful observations to bugzilla that might help fix the issue in case you want to revisit it: http://d.puremagic.com/issues/show_bug.cgi?id=3453 Jan 30 2010
On 2010-01-30 22:35:28 -0500, Walter Bright <newshound1 digitalmars.com> said:Michel Fortin wrote:It's great to have TLS working on Mac OS X. But it looks like it suffers from the same linking problem as the module info section. I've added some useful observations to bugzilla that might help fix the issue in case you want to revisit it: http://d.puremagic.com/issues/show_bug.cgi?id=3453 Jan 30 2010
Michel Fortin wrote:This has nothing to do with a partially recompiled program. It's about something interesting I added to this bug report. And trust me, I compiled the test case from scratch before using dumpobj and objdump on the object files and the linked executables. Jan 30 2010
Michel Fortin wrote:It's about something interesting I added to this bug report. Feb 03 2010
On 2010-02-04 01:39:44 -0500, Walter Bright <newshound1 digitalmars.com> said:Michel Fortin wrote:It's about something interesting I added to this bug report. Feb 04 2010
Michel Fortin wrote:On 2010-02-04 01:39:44 -0500, Walter Bright <newshound1 digitalmars.com> said:Michel Fortin wrote:It's about something interesting I added to this bug report. Feb 04 2010
Michel Fortin wrote:On 2010-02-04 01:39:44 -0500, Walter Bright <newshound1 digitalmars.com> said:Michel Fortin wrote:It's about something interesting I added to this bug report. Feb 04 2010
Simen kjaeraas, el 30 de enero a las 23:23 me escribiste:Walter Bright <newshound1 digitalmars.com> wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Jan 30 2010
On 30/01/2010 08:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Feb 05 2010
BLS wrote:On 30/01/2010 08:13, Walter Bright wrote:http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.056.zip http://www.digitalmars.com/d/2.0/changelog.html http://ftp.digitalmars.com/dmd.2.040.zip Thanks to the many people who contributed to this update! Feb 05 2010
Don't forget thanking Walter for using a public version controlled repository. Feb 05 2010
|