[Info-vax] Error Messages in Basic - %BASIC-E-PARMODNOT, mode for parameter <n> of routine <procedure-name> not as declared

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Wed Jun 5 22:35:35 EDT 2019


On 2019-06-05 14:27:57 +0000, Jeffrey H. Coffield said:

> The following compiles and runs for me on both Alpha and Itanium. You 
> must have something wrong in how you are declaring the function.
> ...
>          external long function lib$convert_date_string

Try it again with the system-provided declarations, rather than the 
classic and old-school 
add-an-external-and-who-cares-about-the-arguments approach.
You'll find the compiler will be recalcitrant.
Replacing these old-style declarations with the system declarations 
might also find latent bugs in existing applications, particularly 
around argument specifications and missing arguments.
I've found all sorts of latent bugs over the years by tightening up the 
code, and by enabling and using compiler diagnostics.



-- 
Pure Personal Opinion | HoffmanLabs LLC 




More information about the Info-vax mailing list