[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Re: Checking data type Pluscal



Interesting, I would say that seems like a bug but there is probably some performance-related reason why it doesn't work that way.

Andrew

On Saturday, July 29, 2023 at 10:50:51 AM UTC-4 Hillel Wayne wrote:

TLC, though, effectively has types. If you check x \in Nat and x is a string, then TLC won't return FALSE, it will raise an error.

H

On 7/29/2023 8:57 AM, Andrew Helwer wrote:
TLA+ and PlusCal don’t really have types. You can check for things like x \in Nat or x \in BOOLEAN to see whether it is in a given set of values.

Andrew

On Tuesday, July 25, 2023 at 9:41:50 PM UTC-4 christin...@xxxxxxxxx wrote:
Is there a built in function to check the type of a variable in Pluscal? Something similar to typeid in c++? I've tried searching but I can't find anything.

Thanks in advance!
--
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+u...@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/9fd4aa9c-e599-4ca1-ac9d-868e41235518n%40googlegroups.com.

--
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/4224ab06-be44-4eb3-b925-49dd294c1d26n%40googlegroups.com.