diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-08-22 14:38:48 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-08-22 17:49:31 +0200 |
| commit | 7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a (patch) | |
| tree | 71a73aa6e74449cab2048957f79a5ca05138e22b /src/rt/rust_crate_cache.cpp | |
| parent | a2466233b4217cc8da4d2ebcd5f7c0b11db5b861 (diff) | |
| download | rust-7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a.tar.gz rust-7d08678b740d779d9f0e1e6d15d7cf6ad4e1b57a.zip | |
Implement pattern guards
The syntax is
alt x {
mypat where mycond { ... }
}
The condition may refer to any of the variables bound by the pattern.
When a guard fails, pattern-matching continues with the next pattern.
Closes #857
Diffstat (limited to 'src/rt/rust_crate_cache.cpp')
0 files changed, 0 insertions, 0 deletions
