Join Slack
Powered by
does anybody know why <https://pastebin.com/rdrdND...
# announcements
s
Shailan Patel
05/05/2021, 8:41 PM
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
nanodeath
05/05/2021, 8:55 PM
I'm not sure about the implementation of local functions, but perhaps you can't use them before they're defined?
👆 1
nanodeath
05/05/2021, 8:55 PM
whereas the order doesn't matter with methods
s
Shailan Patel
05/06/2021, 12:00 AM
what do you mean by "doesn't matter with methods", because methods are usually defined in separate class files?
n
nanodeath
05/06/2021, 12:04 AM
no, I mean methods in the same class
s
Shailan Patel
05/06/2021, 10:19 AM
?
3
Views
Open in Slack
Previous
Next