| Re: More fun with Miser's CASE |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.forth · Group Profile
Author: GerryGerry Date: Jul 4, 2008 07:06
On 4 Jul, 03:39, "Ed" invalid.com> wrote:
[...]
>
> Schemes involving a count are unlikely to work. Miser uses (and
> encourages) existing conditionals to effect the case construct.
> That's its simplicity and flexibility. You can use *any* conditional
> as long as there's an orig left to resolve.
>
Yes solution 1 is flawed with the redefinition of ELSE. But have
you looked at solution 2 which also uses a count. I posted a
working solution 2 the morning after the post you responded to.
The orig counts are saved in a safe place and don't interfere
with the orig list at all. What is non-portable with solution 2?
Whether you are happy with the slower compilation time is a
different issue.
Gerry
|