[ nice-Feature Requests-1124219 ] property set/get

"SourceForge.net" <[email protected]> Tue, 22 Feb 2005 09:38:53 -0800
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Feature Requests item #1124219, was opened at 2005-02-16 20:31
Message generated for change (Comment added) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1124219&group_id=12788

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Peter Wilson (peterwilson)
Assigned to: Nobody/Anonymous (nobody)
Summary: property set/get

Initial Comment:
I think I saw this as a request but it is not on the
current list. 
A property set/get implementation makes for much nicer
synatax. C# has a fairly nice way of defining properties:

prop <type> <propname> {
   get {
       return mX;  // a member variable.
   }
   set {
       mX = value; //<value> is the new value to be set.
   }
or set(value) {
       // if you don't want to make value a reserved word.
    }
}

Usage:  A.x = "XXX"; 
            println(A.x); 

Instead of: A.setX("XXX"); 
                 println(A.getX());  

----------------------------------------------------------------------

>Comment By: Daniel Bonniot (bonniot)
Date: 2005-02-22 18:38

Message:
Logged In: YES 
user_id=88952

Yes, it is planned to work on this. You can have a look at
http://nice.sourceforge.net/cgi-bin/twiki/view/Dev/PropertySyntax
for a discussion on this feature. Comments and contributions
are welcome ;-)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=362788&aid=1124219&group_id=12788


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click