summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2012-02-22 22:51:59 +0100
committerMike Wey2012-02-22 22:51:59 +0100
commit949259ad614b16c5611a7f960576cd0bc51b98b9 (patch)
tree6c7198823c2ac6ff44c6e3e935eccc089c1ffcd4
parentc575c1af3d6d6549fce69514eaa6de5392e5f9bf (diff)
dmd 2.058 fixes template properties.
dmd bug 620.
-rw-r--r--README4
-rw-r--r--dmagick/Image.d20
2 files changed, 3 insertions, 21 deletions
diff --git a/README b/README
index 332fa0f..53430cb 100644
--- a/README
+++ b/README
@@ -5,13 +5,13 @@ Requirements:
Linux (Posix?):
---------------
- - A recent D2 compiler >= 2.054
+ - A recent D2 compiler >= 2.058
- ImageMagick 6.6.0 or grater.
- GNUMake
Windows:
--------
- - A recent D2 compiler >= 2.054
+ - A recent D2 compiler >= 2.058
- ImageMagick 6.6.0 or grater. (6.6.3 and above for 64 bits)
It's Recomended to use the latest version.
- implip from the Digital Mars basic utilities package.
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 6b86e2f..a6758d1 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -4074,25 +4074,7 @@ class Image
*/
auto opDispatch(string property)()
{
- // Workaround for dmd bug 620.
- struct Property
- {
- ImageRef imageRef;
-
- void opAssign(string value)
- {
- SetImageProperty(imageRef, toStringz(property), toStringz(value));
- }
-
- string value()
- {
- return to!(string)(GetImageProperty(imageRef, toStringz(property)));
- }
-
- alias value this;
- }
-
- return Property(imageRef);
+ return to!(string)(GetImageProperty(imageRef, toStringz(property)));
}
unittest