[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Union Type Object problem
From: |
Laurence Finston |
Subject: |
Re: Union Type Object problem |
Date: |
Fri, 13 Aug 2004 21:30:01 +0200 (MEST) |
On Fri, 13 Aug 2004, Frank Heckenbach wrote:
> That's not really solving linear equations, just plain constant
> arithmetic, with automatic reordering of declarations, or lazy
> evaluation. Maybe it's just this example, though, and it can solve
> linear equations in fact -- does this work?
>
> a = 2b;
> b = a - 3;
> show a;
> --> 6
Yes. Sorry if my example was bad.
>
> > In MF, `path a' can be a `declaration' or a
> > `boolean expression', e.g.,
> >
> > path a; % `declaration'
> >
> > if (path a) % `boolean expression'
> > ...
> > fi
> >
> > I'm not even going to try to implement this using Bison. Maybe it would
> > work,
> > but I think it's so likely not to, that I'm going to just use `is_path',
> > etc.,
> > for the `boolean expressions' instead.
>
> Since the context it clearly distinct (provided `if' is a keyword),
> this should be no problem at all.
>
I think it might do in other contexts. For example, I might decide to
allow declarations inside parentheses. Perhaps I'm being overly cautious,
but I've generally had more problems when I haven't been cautious enough.
I also don't like the ambiguity of type names being declarators in one
context and conditional operators (or whatever one would call them) in
another.
Laurence
- Re: Union Type Object problem, (continued)
- Re: Union Type Object problem, Laurence Finston, 2004/08/08
- Re: Union Type Object problem, Hans Aberg, 2004/08/09
- Re: Union Type Object problem, Laurence Finston, 2004/08/09
- Message not available
- Re: Union Type Object problem, Hans Aberg, 2004/08/10
- Re: Union Type Object problem, Laurence Finston, 2004/08/10
- Message not available
- Re: Union Type Object problem, Hans Aberg, 2004/08/11
- Re: Union Type Object problem, Laurence Finston, 2004/08/12
- Re: Union Type Object problem, Hans Aberg, 2004/08/12
- Re: Union Type Object problem, Laurence Finston, 2004/08/12
- Re: Union Type Object problem, Frank Heckenbach, 2004/08/13
- Re: Union Type Object problem,
Laurence Finston <=
- Message not available
- Re: Union Type Object problem, Hans Aberg, 2004/08/12
- Re: Union Type Object problem, Laurence Finston, 2004/08/12
- Message not available
- Re: Union Type Object problem, Hans Aberg, 2004/08/13
- 3DLDF, Hans Aberg, 2004/08/12
- Re: 3DLDF, Laurence Finston, 2004/08/12
- Message not available
- Re: 3DLDF, Hans Aberg, 2004/08/13
- Re: 3DLDF, Laurence Finston, 2004/08/13
- Re: 3DLDF, Hans Aberg, 2004/08/13
- Re: 3DLDF, Laurence Finston, 2004/08/14
- Re: 3DLDF, Hans Aberg, 2004/08/14