2014-10-29 9:34 GMT+01:00 Martin.J Thompson <Martin.J.Thompson@trw.com>: > > Python (sorry to use it as an example again!) has the concept of “None” which is a metavalue used for this sort of purpose. > > > > We could use None, Nothing, Invalid_Value, Undefined or some other similar phrase (obviously, there’s the risk of collision with historically code). > > > > The phrase “Undefined” would have some correspondence with ‘U’ in std_logic. Hmm. Would we then make these numerical type initialise to “Undefined” rather than type’low?? If you open up the language to Nullable types you open up a giant can of worms and errors. If this sort of functionality in VHDL is need I suggest that it is based on the option type known from functional programming languages such as Haskell. Only then will you be able to rely on the compiler avoid null-exceptions. Of cause a Maybe (Haskell) or Option (F#) type would require significant modifications to the VHDL type system, but it opens up a whole new world of possibilities. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Oct 29 14:43:44 2014
This archive was generated by hypermail 2.1.8 : Wed Oct 29 2014 - 14:44:10 PDT