What does "-" means in this declaration
I was looking at this source code and in the attributes declaration there is a minus sign.
- s : String
Or in a met开发者_开发百科hod declaration:
- x( aPoint : Point ):Integer {
ad : Double = aPoint.getX()
ad.intValue()
}
What does it stands for?
It makes the definition private, according to the access modifiers list.
http://code.google.com/p/ryz/wiki/RyzLanguageReference#Methods
means s or x aren't static members, if you put +
that means they are static ones
From here, minus signs denote instance methods.
精彩评论