Let in Oxygene


(JohnMoshakis) #1

Is is possible to have something equivalent to swifts let in Oxygene now or does that need additional compiler support ?

Thanks,
John


(JohnMoshakis) #2

Oops I just need to add readonly after the declaration.

Would it be possible to have a new keyword ?


(Kosta Key) #3

I believe “Let” is equivalent to “Const” keyword in Oxygene.


(marc hoffman) #4

yeah, either const x := 5 or var x := 5; readonly; should work.