Skip to content

Commit

Permalink
For propGetSet
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Dec 15, 2011
1 parent f7150f0 commit 999970c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions std/cstream.d
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions std/signals.d
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions std/xml.d
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -1929,7 +1929,7 @@ class ElementParser
* };
* --------------
*/
void onXI(Handler handler) { xiHandler = handler; }
@property void onXI(Handler handler) { xiHandler = handler; }

/**
* Parse an XML element.
Expand Down

0 comments on commit 999970c

Please sign in to comment.