There are tons of test cases where this is used and it works. I'm guessing
you are trying to code

namespace:class~new

as a line by itself. In that case, the "namespace:" part is recognized as a
label because it's at the beginning of a clause, so the next instruction is
just "class~new), which would give you that error. Using the parens
prevents the namespace qualifier from being interpreted as a label so it
works. Using (namespace:class~new) would also work.

Rick

On Wed, Apr 2, 2025 at 7:16 AM Josep Maria Blasco <
jose.maria.bla...@gmail.com> wrote:

> Hi,
>
> When one ::REQUIRES a package using the namespace option, using the
> expression
>
> namespace:class~new
>
> produces an error: "class" does not understand message "new". As it seems,
> the language processor interprets the expression above as
>
> namespace:(class~new)
>
> instead of as
>
> (namespace:class)~new
>
> which works correctly, by the way.
>
> To me this looks like a bug, because
>
> (namespace:("cla"ss))~new
>
> for example, produces a 20.923, "Symbol expected as a name of
> namespace-qualified symbol".
>
> Should I open a bug report?
>
>   Josep Maria
>
> P.S. 20.922 and 20.923 are anomalies, but in another sense: one cannot
> access routines or classes which have names which are not symbols using
> namespace qualifications.
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to