Difference between revisions of "Not enough arguments"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(Created page with "==About== "Not enough arguments" is an error message that appears in Gambas as a pop-up over the "stack trace" area, apparently when attempting to auto-initialize a va...")
 
(SMW)
 
Line 1: Line 1:
 +
<hide>
 +
[[page type::list entry]]
 +
[[thing type::error message]]
 +
[[produced by::Gambas]]
 +
[[category:error messages]]
 +
</hide>
 
==About==
 
==About==
 
"[[Not enough arguments]]" is an error message that appears in [[Gambas]] as a pop-up over the "stack trace" area, apparently when attempting to auto-initialize a variable without the correct number of arguments. The stack trace may be misleading as to where the error is actually occurring.
 
"[[Not enough arguments]]" is an error message that appears in [[Gambas]] as a pop-up over the "stack trace" area, apparently when attempting to auto-initialize a variable without the correct number of arguments. The stack trace may be misleading as to where the error is actually occurring.

Latest revision as of 16:52, 15 May 2015

About

"Not enough arguments" is an error message that appears in Gambas as a pop-up over the "stack trace" area, apparently when attempting to auto-initialize a variable without the correct number of arguments. The stack trace may be misleading as to where the error is actually occurring.

For example, suppose ClassA has static member StaticB of ClassB whose _new() function requires one or more arguments, and ClassA declares StaticB like this:

<gambas>static StaticB as New ClassB</gambas>

In this case, the error message will point at a line of code in which ClassA is initialized, not the erroneous line above.