|
Jon Paris wrote:
>
> >> Just seems odd that the compiler will happily accept below and not allow
> doing the same thing on %lookup.
>
> Yes it is isn't it. It may just be a quirk in the compiler validation of
> the parms to %Lookup. As I noted before though the docs state that the
> parameter must be an array - which a function call isn't. It is an array
> expression.
>
I don't know why the restriction exists, but you're right that you can't
code an expression for the array parameter.
This doesn't compile either:
D arr1 s 5a dim(5)
D arr2 s 5a dim(5)
D val s 10a
/free
if %lookup(val : arr1 + arr2) > 0;
endif;
return;
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.