The Fan Programming Language

Paul D. Anderson paul.d.removethis.anderson at comcast.andthis.net
Thu Jun 12 11:09:51 PDT 2008


BCS Wrote:

> Reply to Paul,
> 
> > there is only one keyword ("const") with multiple meanings -- const
> > variables, const classes and const functions... And there is only one
> > kind of immutability -- const objects can never change. No mention is
> > made of transitivity. I don't know whether it is ignored or implicit.
> 
> "Fan runs on the JVM and the .NET runtime. It manages this by writing to 
> a temporary intermediate format, which then gets further compiled to the 
> right bytecode."
> 
> 
> Source -> Fan-IL -> JVM/MSIL -> bin -> micro-ops -> ...
> 
> How far removed from the actual cpu can you get!
> 
> (Note: I'm not saying this is a problem...)
> 
> 

Yes, it is emphatically not a down-to-the-hardware language.

Also, upon further review, there is a second sort of "const". Any class member may have the "readonly" attribute. This attribute means that the setter is private. No guarantee of immutablity is implied.



More information about the Digitalmars-d mailing list