Re: Doubt about compiler error of `has_value` with arrays

Marcos Cruz <[email protected]> Thu, 13 Mar 2025 17:31:33 +0100
Newsgroups gmane.comp.lang.pike.user
Message-ID <[email protected]>
[email protected] escribió/skribis/wrote/scrit (2025-03-13T12:16:36-0400):

> In the meantime, you can get around this error by using the following:
> 
> > int x;
> > array y = ({ 1, 2, 3, 4 });
> > x = has_value(y, 5);

I know hilfe has some limitations, but the problem happens to me both in
hilfe and in a file.  That's why I didn't mention hilfe.

So somehow the problem happens when the array argument is a literal,
both in hilfe and in a file.

Thank you.

-- 
Marcos Cruz
http://programandala.net