Can anyone provide me with an example of using tag values in case or if/else statements in classes? In a discussion about a month ago, Luke suggested using tags is preferable to "if defined" and I''m just wondering how to do this. Cheers, James ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA-Tech Australia. Thank you. **********************************************************************************
On Nov 1, 2007, at 11:57 PM, HARRIS Jimmy ((AXA-Tech-AU)) wrote:> Can anyone provide me with an example of using tag values in case or > if/else statements in classes? > > In a discussion about a month ago, Luke suggested using tags is > preferable to "if defined" and I''m just wondering how to do this.class webserver {...} if tagged(webserver) { ... } You''ll still have ordering issues, unfortunately. -- It is said that power corrupts, but actually it''s more true that power attracts the corruptible. The sane are usually attracted by other things than power. -- David Brin --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com