Function Naming
Posted: Thu Feb 04, 2016 6:46 pm
Just ran across this while doing some beta testing: - used a fairly recent version of 'setupBasic.exe' - reports 9.36f also??!!
if the name of a function starts with a number -- the compiler errors out
'
Analyzing F:/Coridium/824_wifi/824max_fisher_01.bas
Programming Flash 0824...
function 5Key5(key)
-ERROR F:/Coridium/824_wifi/824max_fisher_01.bas: 143: Duplicate Name, found 5Key5(key)
'''
take the first '5' off and no more error
'
hooked up a BasicChip/board to verify - with ARMbasic 9.36f - ran the same program as above - it fails with a 5key5
'
'
Maybe update the SUB & Function description with a caution??
if the name of a function starts with a number -- the compiler errors out
'
Analyzing F:/Coridium/824_wifi/824max_fisher_01.bas
Programming Flash 0824...
function 5Key5(key)
-ERROR F:/Coridium/824_wifi/824max_fisher_01.bas: 143: Duplicate Name, found 5Key5(key)
'''
take the first '5' off and no more error
'
hooked up a BasicChip/board to verify - with ARMbasic 9.36f - ran the same program as above - it fails with a 5key5
'
'
Maybe update the SUB & Function description with a caution??