Tristan,
> Instead of
> *condition* ::= *boolean*_expression
> | condition?( expression )
>
> Where condition? is called by the compiler when the expression does
> not resolve to boolean.
>
> Why not:
> *condition* ::= expression
>
> Where a "??" function returning a boolean is implcitly
> called with the
> expression as only argument.
>
> Of course, a 'function "??" (a : boolean) return boolean;"
> has to be defined. Things would be more orthogonal.
That's precisely how I've defined it in my draft Language Change
Specification.
Cheers,
PA
-- Dr. Peter J. Ashenden peter@ashenden.com.au Ashenden Designs Pty. Ltd. www.ashenden.com.au PO Box 640 Ph: +61 8 8339 7532 Stirling, SA 5152 Fax: +61 8 8339 2616 Australia Mobile: +61 414 70 9106 > -----Original Message----- > From: owner-vhdl-200x-ft@eda.org > [mailto:owner-vhdl-200x-ft@eda.org] On Behalf Of tgingold@free.fr > Sent: Thursday, 2 December 2004 19:28 > To: Peter Ashenden > Cc: vhdl-200x-ft@eda.org > Subject: Re: [vhdl-200x-ft] Revised FT18: condition operator > > > Selon Peter Ashenden <peter@ashenden.com.au>: > > Yet another suggestion. > > > Tristan. >Received on Thu Dec 2 16:57:32 2004
This archive was generated by hypermail 2.1.8 : Thu Dec 02 2004 - 16:57:33 PST