Re:Types Are The Truth
by phaedrus on Tuesday June 10, 2014 @02:56PM
(#7874589)
If the language supports union, then simply give your working variable the type of "union { float, long }". This directly expresses the idea that you're working with a piece of memory that is used for two purposes.
[ Parent
| on HN ]
Re:Types Are The Truth
by TheLoneWolfling on Tuesday June 10, 2014 @03:00PM
(#7874608)
If the language supports untagged unions, it isn't strongly typed. With very few exceptions.