diff --git a/std/cstream.d b/std/cstream.d index d8d802ea1ac..22bef7b3561 100644 --- a/std/cstream.d +++ b/std/cstream.d @@ -53,12 +53,12 @@ class CFile : Stream { * Property to get or set the underlying file for this stream. * Setting the file marks the stream as open. */ - FILE* file() { return cfile; } + @property FILE* file() { return cfile; } /** * Ditto */ - void file(FILE* cfile) { + @property void file(FILE* cfile) { this.cfile = cfile; isopen = true; } diff --git a/std/signals.d b/std/signals.d index 6e12572f47b..e83c3ed1351 100644 --- a/std/signals.d +++ b/std/signals.d @@ -299,9 +299,9 @@ unittest class Foo { - int value() { return _value; } + @property int value() { return _value; } - int value(int v) + @property int value(int v) { if (v != _value) { _value = v; diff --git a/std/xml.d b/std/xml.d index f645fe813cc..95100f8e7af 100644 --- a/std/xml.d +++ b/std/xml.d @@ -1817,7 +1817,7 @@ class ElementParser * }; * -------------- */ - void onText(Handler handler) { textHandler = handler; } + @property void onText(Handler handler) { textHandler = handler; } /** * Register an alternative handler which will be called whenever text @@ -1864,7 +1864,7 @@ class ElementParser * }; * -------------- */ - void onCData(Handler handler) { cdataHandler = handler; } + @property void onCData(Handler handler) { cdataHandler = handler; } /** * Register a handler which will be called whenever a comment is @@ -1885,7 +1885,7 @@ class ElementParser * }; * -------------- */ - void onComment(Handler handler) { commentHandler = handler; } + @property void onComment(Handler handler) { commentHandler = handler; } /** * Register a handler which will be called whenever a processing @@ -1906,7 +1906,7 @@ class ElementParser * }; * -------------- */ - void onPI(Handler handler) { piHandler = handler; } + @property void onPI(Handler handler) { piHandler = handler; } /** * Register a handler which will be called whenever an XML instruction is @@ -1929,7 +1929,7 @@ class ElementParser * }; * -------------- */ - void onXI(Handler handler) { xiHandler = handler; } + @property void onXI(Handler handler) { xiHandler = handler; } /** * Parse an XML element.