[SOLVED] Why debugger returning these warnings?


(Bora Kasap) #1

Why my debugger returning these “Warnings” Actually i want to know, are that warnings danger? Or it works fine…? Makes a performance problem or not? Etc etc… Can you help me about that?

variable ‘texter’ has no type declaration

or

return value for function ‘updater’ has no type declaration.

and

It will not be visible outside of this package.


(Jacob Albano) #2

If you declare a variable like this:

var text = "some words";

instead of this:

var text:String = "some words"l

the compiler won’t know ahead of time what type the variable is, which can reduce performance as it is implicitly typed as an Object.


If you declare a class member without an access qualifier (private, protected, public, or internal), classes in other packages won’t be able to access it.


(Bora Kasap) #3

Got it. Thanks. What about internal access qualifier? What is it? If easy to explain. Otherwise i can explore it myself.


(Bora Kasap) #4

Oh, i got it, internal is what i done already :smiley: