Order of function call via Constraint V/S with covergroup expression

In reply to dave_59:

Thanks Dave for the clarification .

A final question to conclude the thread ( have made small changes to the 2 codes )

Regarding ,[b]as per (4) can I say it’s illegal to access variable q within myfunc in covergroup_code ?

Whereas for constraint_code it’s legal to access non-random array user within the function as the LRM has no such restriction

The general use of these variables ( q , user ) would be within the function .
The function would return a value based on some internal logic.