New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple bugs in typeguard. #16
Comments
Record parameter should be OK to cast regardless of its VAR attribute (of course respecting read-only nature of non-VAR parameter). There is no meaning in prohibiting a type guard for non-VAR record parameters. |
non-VAR parameter can be passed by value (in some realizations) instead of by reference (also there is mix case - some records passed by reference, and some by value). Also according language report (and there is no ambiguity in this case) compiler MUST report error if programmer tries to use typeguard for VAL-record parameter of procedure. |
OK. So O7 does not support immutable "message bus"? ;) |
Yep :-) Also BlackBox uses only mutable message bus. |
Partially fixed (to fix variables/val-parameters case). |
Typeguard rules:
About pointers and extension types:
(bad) - marks wrong compiler behaviour
(good) - marks correct compiler behaviour
The text was updated successfully, but these errors were encountered: