Pragmas : Namespace pragmas : Working with declaration methods : Correcting declaration errors

Correcting declaration errors
The declaration methods of loaded applications and subapplications can be modified at any time to correct declaration errors.
Normally an application cannot be loaded if it has declaration errors. To correct declaration errors in an application that is not loaded, follow these steps.
1.
Evaluate EmImageBuilder cancelIfDeclarationErrors: false. With this option disabled, load operations are not canceled if declaration errors are encountered.
2.
a.
Use protocols such as declareVariable: in the Smalltalk dictionary.
b.
3.
4.
5.
6.
Verify the changes using Make Consistent of the Applications menu in an Application Manager with the desired applications selected.
7.
Re-enable cancelIfDeclarationErrors to ensure that operations fail if declaration errors are encountered. This ensures that methods with declaration errors are not released into a configuration.