does anybody know why <https://pastebin.com/rdrdND...
# announcements
s
does anybody know why https://pastebin.com/rdrdNDXn gives unresolved reference and https://pastebin.com/WSaThfvV doesn't and if it is possible to define a function within main(), why can't it be called too?
n
I'm not sure about the implementation of local functions, but perhaps you can't use them before they're defined?
👆 1
whereas the order doesn't matter with methods
s
what do you mean by "doesn't matter with methods", because methods are usually defined in separate class files?
n
no, I mean methods in the same class
s
?