I think this is very good. I'm getting to speed with oAW and hope to be more
useful soon.

Well done.


Patrik Nordwall wrote:
> 
> While playing around with the syntax I have now the following conclusions.
> Ordered parameters are better, more compact, less typing. The quotes are
> not necessary for simple integer attributes.
> 
> The examples look like this
> 
> Simple enum:
>         ValueObject Weather {
>             Date day;
>             - @WeatherClassification classification;
>         }
>         
>         enum WeatherClassification {
>             SUNNY, WINDY, CLOUDY;
>         }
> 
> Enum with one implicit value attribute:
>         ValueObject Weather {
>             Date day;
>             - @WeatherClassification classification;
>             - @WindSpeed wind;
>         }
>         
>         enum WindSpeed {
>             CALM(1),
>             STORM(10), 
>             HURRICAN(10);
>         }
>         
>  Enum with several attributes:
>         ValueObject Weather {
>             Date day;
>             - @WeatherClassification classification;
>             - @WindSpeed wind;
>         }
>         
>         enum WindSpeed {
>             int beaufortNumber;
>             double minMps;
>             double maxMps;
>             
>             CALM(1, "0", "0.2"),
>             STORM(10, "24.5", "28.4"),
>             HURRICAN(12, "32.7", "40.8");
>         }
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Enums-tp13922588s17564p14447134.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to