hi,
here's a 'twilight zone' compile bug (happened in sciboo)
2 files,
"""t1.boo"""
def Main(argv as (string)):
Toto.Initialize()
"""t2.boo"""
class Toto:
static def Initialize():
_toto = def(s as string):
refs = s.Split(char(','))
for d in refs:
print d
_toto("abc, def")
_toto2 = def(s as string):
return '_' + s[0:1].ToLower() + s[1:]
print _toto2("Allo")
---------
booc t1.boo t2.boo -output tt.exe
>tt.exe
_allo
>Exit code: 0
----------
comment out the "_toto2" part in t2.boo and we get expected results:
booc t1.boo t2.boo -output tt.exe
>tt.exe
abc
def
>Exit code: 0
------
or, (change order t1,t2 => t2,t1) and we get expected results
booc t2.boo t1.boo -output tt.exe
>tt.exe
abc
def
_allo
>Exit code: 0