For example I have a goodbye ascii art message that I want to display when i type "exit". But if I refernce it ABOVE it's place where i define it, then it'll give me an error. If I put it above the reference point, then it works, but it doesn't look the best. Is there a way to be able to summon a function before it's seen by the program? Thank you:)
-
1I recommend simply getting used to the look of function calls being below their definitions.TigerhawkT3– TigerhawkT32016-04-09 10:16:34 +00:00Commented Apr 9, 2016 at 10:16
-
Not even in Javascript (pretty much the world's most modern commonly used scripting language) has this feature. In DOM JS, you have document.onready, but that's pretty much the extent.user3186555– user31865552016-04-09 10:46:24 +00:00Commented Apr 9, 2016 at 10:46
-
This is, because programming languages have always been written this wayuser3186555– user31865552016-04-09 10:46:54 +00:00Commented Apr 9, 2016 at 10:46
Add a comment
|