Ok, I'll change "very rarely" to "only sometimes": That approach doesn't work very well with subgroups. Say for instance that errors are classified as "os", "pike", etc and that "os" errors are further classified into "io", "memory", etc. How would you then write a switch that handles "io" and "pike" errors but not anything else?
/ Martin Stjernholm, Roxen IS
Previous text:
2003-10-01 22:40: Subject: Re: throw or return
Depends on if the group exist in the exception object,
switch (e->group) { case "bananer": ... }
I hope both type of exception and the actual exception will be in readable variables?
/ Mirar