[haXe] New feature : Properties
Franco Ponticelli
franco.ponticelli at gmail.com
Thu Apr 13 10:36:24 CEST 2006
I like this ... very much!
Some questions/notes:
1. "default" now can't be used safely as a method name (was already a
keyword?).
2. I've had to spent more time than necessary to interpret those 2 line (the
confusion is that seems that you can just read the value outside the class,
not inside):
- the field ro can only be readed outside of the class code
- the field wo can only be writen outside of the class code
Isn't that better?
- outside the class code, the field ro is read only
- outside the class code, the field wo is write only
3. Can you use Reflect to access a property? Or has the same restriction as
Dynamic?
4. How do you set a runtinme-generated method for getters/setters?
Thank you,
Franco.
2006/4/12, Nicolas Cannasse <ncannasse at motion-twin.com>:
>
> Hi list,
>
> I just finished to add a new feature to haXe called "properties" that
> can be used to implement the following :
> - readonly/writeonly fields
> - getter/setters
>
> See the doc here : http://haxe.org/ref#properties
>
> You're welcome to play with it (after building CVS version) and suggest
> standard API modifications for using this new feature.
>
> Nicolas
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20060413/277b26a6/attachment.htm
More information about the Haxe
mailing list