RE: [vhdl-200x] More operators for integers

From: Martin.J Thompson <Martin.J.Thompson@trw.com>
Date: Mon Oct 20 2014 - 02:49:15 PDT
No, runtime.  If you have a variable (say) containing the maximum value for its range, then incrementing it will cause a runtime error.  Similarly shifting it left as described in this proposal would error through the same mechanism.

-----Original Message-----
From: owner-vhdl-200x@eda.org [mailto:owner-vhdl-200x@eda.org] On Behalf Of whygee@f-cpu.org
Sent: 20 October 2014 10:20
To: vhdl-200x@eda.org
Subject: RE: [vhdl-200x] More operators for integers

Le 2014-10-20 11:02, Martin.J Thompson a écrit :
> I'd envisage the error to be much like any current error (like adding
> 1 to some_subtype'high).

so it would be a compile-time error ?

> Martin
yg


--
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Oct 20 02:50:05 2014

This archive was generated by hypermail 2.1.8 : Mon Oct 20 2014 - 02:50:06 PDT