Garmin Forums
Site
Search
User
Site
Search
User
Apps & Software
Outdoor Recreation
Sports & Fitness
Pilots
Developer
Beta Program
German Forum
More
Cancel
Developer
More
Connect IQ
Connect IQ App Development Discussion
const keyword in function scope
News & Announcements
Forums
Bug Reports
Wiki
Tags
More
Cancel
Replies
1 reply
Subscribers
14 subscribers
Views
433 views
Users
0 members are here
Options
Share
More
Cancel
Related
const keyword in function scope
Former Member
over 10 years ago
Is const a valid keyword in a function scope? Eclipse highlights it as an error, and the builder gives the output "ERROR: no viable alternative at input '{const'".
function test() {
const size = 10;
for( var i = 0; i < size; ++i ) {
// do work
}
}
AlphaMonkeyC
over 10 years ago
It's currently not, but it would be a good addition. Noted for future reference.
-Alpha Monkey
Cancel
Up
0
Down
Reply
Cancel