Methods, parameters, and results
A Method groups reusable behavior. Define it once, then select it in Call Method.
Define a method
Section titled “Define a method”- Place Method as a definition line in Dev.
- Open the definition and click its name to rename it in a dialog.
- Choose its owning class and whether it is static or instance-based.
- Declare ordered typed parameters using Variable items; names must be unique. Up to 18 parameter declarations are supported.
- Set return type, access, Async, Override, or Final as needed in Method Settings.
- Add the method body after its definition.
Parameters are Private locals of that call. Two callers have isolated locals; Public/Save remain explicit shared scopes.
Call it
Section titled “Call it”Place Call Method. Use No Object for a static method or an object receiver for an instance method. Find custom definitions under Custom Methods; entries show their owning class and signature. Configure the selected signature’s arguments in order.
Use a compatible result Variable to retain a return value, or leave the result empty to discard it. If may call a Boolean-returning method directly. Non-Void methods must return a compatible value on every reachable completion path.
Optional/default/variadic parameters
Section titled “Optional/default/variadic parameters”Parameter settings expose Optional, Default, and Variadic. Copy a typed literal onto Default. Omission uses the default; explicit Null remains null and requires a nullable type. A last variadic parameter receives its supplied values as a fresh List of the declared element type.
Overloads
Section titled “Overloads”Same-name methods may differ by typed parameter signature. Pick the intended signature from the menu. Resolution uses declared input/receiver types; ambiguous name-based selection fails. Renaming a definition preserves its identity, but changing its signature can require fixing callers.
Waiting and async work
Section titled “Waiting and async work”Calls default to Await On, execute immediately until suspension, and resume the caller after completion. Await Off is available on async calls: arguments are captured now, a separate task starts next tick, and its result is discarded. See async methods for task lifetime and shared-state pitfalls.
For inheritance and dynamic dispatch, continue to inheritance.