Path: news.daimi.aau.dk!news.uni-c.dk!newsfeed.sunet.se!news00.sunet.se!sunic!mn6.swip.net!plug.news.pipex.net!pipex!dish.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!in2.uu.net!EU.net!Austria.EU.net!newsfeed.ACO.net!aci.cvut.cz!news.zcu.cz!newsadm From: Marek Novy Newsgroups: comp.lang.beta Subject: boolean checking Date: 26 Oct 1995 10:17:25 GMT Organization: University of West Bohemia Lines: 15 Message-ID: <46nn7l$dvb@nic.zcu.cz> NNTP-Posting-Host: siren3.zcu.cz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 1.1S (X11; I; IRIX 5.3 IP22) X-URL: news:comp.lang.beta I had to be absent minded writing i:@boolean instead of i:@integer in my program and it caused very strange behaviour. Because the i variable has been used very frequently in the program. I'm suprised this error hasn't been checked by the type system. For instance: -1->i; i->putint; prints 255 etc. I understand the booleans are implemented as integers. But it cant't influence semantics.