[dmd-beta] dmd 1.061 and 2.046 beta

Max Samukha maxsamukha at gmail.com
Tue May 11 03:44:13 PDT 2010


On Tue, May 11, 2010 at 11:06 AM, Walter Bright <walter at digitalmars.com>wrote:

> I found a couple problems, don't know if they're causing the problem you're
> seeing. Just uploaded a new beta to solve them.
>
>
The latest beta doesn't segfault but there is another problem:

/media/RESOURCES/d-projects/qtd-trunk/qtd/output/build/qt/gui/QPaintDevice.d(259):
Error: no property 'PaintDeviceMetric' for type
'qt.gui.QPaintDevice.QPaintDevice'
/media/RESOURCES/d-projects/qtd-trunk/qtd/output/build/qt/gui/QPaintDevice.d(259):
Error: QPaintDevice.PaintDeviceMetric is used as a type

It is caused by an enum defined in an abstract class and forward referenced
in an interface implemented by that abstract class:

abstract class QPaintDevice : QtdObject, IQPaintDevice
{
    enum PaintDeviceMetric {
    }
}

interface IQPaintDevice
{
        public int metric(QPaintDevice.PaintDeviceMetric metric) const;
}

The design is not quite right and we will move the enum into the interface.
Yet, I think the code should compile without problems. We'll try to provide
a test-case later.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20100511/750b8cd4/attachment.html>


More information about the dmd-beta mailing list