OOP support.

This commit is contained in:
Stephen Chung
2020-06-26 10:39:18 +08:00
parent 259b6d0fcf
commit 175c3ccaec
27 changed files with 498 additions and 234 deletions

View File

@@ -57,13 +57,13 @@ if the first one already proves the condition wrong.
Single boolean operators `&` and `|` always evaluate both operands.
```rust
this() || that(); // that() is not evaluated if this() is true
a() || b(); // b() is not evaluated if a() is true
this() && that(); // that() is not evaluated if this() is false
a() && b(); // b() is not evaluated if a() is false
this() | that(); // both this() and that() are evaluated
a() | b(); // both a() and b() are evaluated
this() & that(); // both this() and that() are evaluated
a() & b(); // both a() and b() are evaluated
```
Compound Assignment Operators