[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlaplus] Re: Overriding operator which is used in a temporal property
- From: Leslie Lamport <tlaplus.ll@xxxxxxxxx>
- Date: Wed, 14 Apr 2021 08:44:13 -0700 (PDT)
- Ironport-hdrordr: A9a23:GBGqFq/MaxdGBApat9Buk+F3db1zdoIgy1knxilNYDZSddGVkN3roeQD2XbP+UoscVwDufTFAqmPRnvA6YV4iLN6UIuKcQH6tAKTXeVfxKT4xTmIIVyYysd80uNaf7F6GJnMCzFB/L7HySy5Cctl6MKM8aC2iY7lvgFQZCRrcbwlzgt9E2+gYzpLbSxHH4d8NLf03Ls1mxOEeW4LKv28HGRtZZm2m/TvlIj6JSIAHQIt8gOUjTilgYSKWiSw+jc7f3dxzaw58W7D+jaJm5mLl/m6zx/a2SvX745K8eGRuudrIMCXkMAaJnHNh2+TFf1ccoSYsDo4re2p4lpCqqi8nz4aM85+62zccwiOyHOHqmvd+Q0j5HP4xViTjWGLm72DeBsAB9NFlcZldHLimjQdletx169GxAui2KZ/Nw/Knyj2+rHzJmtXv3ezyEBS99I7vjh1XYcYVb5ctoB3xjI3LL4wWAz/rKQqCvNnAs2Z3utfbF/yVR7kl1gq7tqrUHE+WjqlYmxHgMya1DBKgGt0pnF1+OUv2lkH8pw5R91r/OLZK+BJmdh1P7orRJM4KuEGT866TlbIXAuJCmSPOl7qfZtnB1v977jt4Ls04+muPKYFy5Y/g/36ISxlnF93QE7lBc2Q0JAjyHC9JVmVbHDW08lbo7J5trf/SLeuESrGZkspj9LImYRsPvHm
- References: <firstname.lastname@example.org>
Pretty much all constant operators are overridden with Java code. If you are overriding a constant operator, the problem is almost certainly in your Java code. Try testing it with the "Evaluate Constant _expression_" feature of the Toolbox. I don't know if it's possible to override a non-constant operator with Java code, but I expect you'd need to know a lot about how TLC works to do it.
On Tuesday, April 13, 2021 at 9:47:54 PM UTC-7 pfeod...@xxxxxxxxx wrote:
Is there any way that I could use an overridden operator in a temporal property? E.g. `prop` is a `PROPERTY` and `MyOperator` is overridden by a Java method.
It works when not overridden, otherwise it gives me the following error (using the `TLAPlusOperator` interface)
Error: In evaluation, the identifier mainVar is either undefined or not an operator.
I'm doing this for a personal project and I understand that the evaluation of temporal properties is complex enough that I guess I should not be able to do this, but who knows.
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/a80b90f7-09e0-4e34-8078-23f2b4ce3ac2n%40googlegroups.com.