Hi,
I've just uploaded an experimental version of trans (Windows only sorry) that features some fixes for strict mode and/or abstract methods.
Due to a minor plumbing related adventure (that should be resolved soon) I haven't been able to test this as thoroughly as I would have liked, but thought it was probably worth uploading as an experiment anyway as it features a semi big/dangerous change.
The main addition is that you should now be able to leave out 'unreachable' return statements in strict mode.
Strict
Function Test:Int( x? )
If x
Return 1
Else
Return 2
Endif
'Note: no return required here!
End
Function Main:Int()
Print Test( True )
Print Test( False )
Return 0
End
My fear is that some targets (in particular Flash) may still complain, but all my tests compile/run fine so hopefully not.
Anyway, if you're a strict mode user (or just the adventurous type) please give this a whirl and let me know if you have any problems (or not).
|