How to declare local "variables" as final in Objective-C? -


In Java, I can finally declare a local "variable" like

 

Code> myMethod () {last string foo = "Hello World!"; Foo = "Bye ..."; // compilation error !! Return; }

When I try to change its value, the compiler gets an error.

What is the purpose of this? Like

const keyword.

For more information, this article looks right on your alley:


Comments

Popular posts from this blog

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -