Re: Can A Macro Do This?
- From: Philip Potter <pgp@xxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 12:54:04 +0000
Barry Schwarz wrote:
On Wed, 28 Nov 2007 16:45:40 +0100, Björn Paetzel <news@xxxxxxxxxx>
wrote:
santosh schrieb:
Maybe he wanted to something like this:How can foo be 3 different things at the same time as in theYes. The sequence of assert invocations as presented seem redundant. Of
original code???
>>>> assert(foo==X);
>>>> assert(foo==Y);
>>>> assert(foo==Z);
That can't be right!
course some code could occur between the calls or the OP might have
just presented this as an example to enquire about writing complex
expressions with assert.
assert(foo==X==Y==Z);
/* ;) */
Since == is not transitive in the same sense = is, it seems unlikely.
A relation R is transitive if a R b && b R c implies a R c for all a,b,c. I believe this applies to == and it's even appropriate for = because it isn't a relation.
.
- References:
- Can A Macro Do This?
- From: gamename
- Re: Can A Macro Do This?
- From: santosh
- Re: Can A Macro Do This?
- From: jacob navia
- Re: Can A Macro Do This?
- From: santosh
- Re: Can A Macro Do This?
- From: jacob navia
- Re: Can A Macro Do This?
- From: santosh
- Re: Can A Macro Do This?
- From: Björn Paetzel
- Re: Can A Macro Do This?
- From: Barry Schwarz
- Can A Macro Do This?
- Prev by Date: << HUNDSOME GAIN WITHOUT INVEST ON NET>>
- Next by Date: Re: Compiler problem....unique to C or compiler???
- Previous by thread: Re: Can A Macro Do This?
- Next by thread: Re: Can A Macro Do This?
- Index(es):
Relevant Pages
|