Re: E Style
Bill Frantz <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <r314ps-1065i-EF1BFC61225F4218BC41C705CE38DBE7@Bill-Frantzs-MacBook-Pro.local> |
Thanks to both Thomas and MarkM for their responses. What I
ended up with is (and I hope the line folder doesn't get them.):
def location := switch (filename) {
match `@{_}Cave@{_}` { 0 }
match `@{_}Frosty@{_}` { 1 }
match `@{_}TTT@{_}` { 2 }
match _ { throw(`ERROR: Filename "$filename" yields -1 for
offset`) }
}
Cheers - Bill
-------------------------------------------------------------------------
Bill Frantz | Airline peanut bag: "Produced | Periwinkle
(408)356-8506 | in a facility that processes | 16345
Englewood Ave
www.pwpconsult.com | peanuts and other nuts." - Duh | Los Gatos,
CA 95032