From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f9957894e0bdf128 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How to put 200 into an integer sub-type of 16 bits (code included) Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <407ae64d-3cb3-4310-b59e-f1bbae9910a5@t39g2000prh.googlegroups.com> <71gqm49eatq868htrvd7eghm3m8su8kcbl@4ax.com> <3d3719f4-355c-4094-9902-495d612d46fe@n33g2000pri.googlegroups.com> <139961e9-bae6-4e60-8ff7-4f4779b27481@z6g2000pre.googlegroups.com> <87816592-c947-4bbc-92ed-7473646a105e@a12g2000pro.googlegroups.com> <1a2b31ac-cf6b-44e3-85b7-04594460db87@d36g2000prf.googlegroups.com> <86ab9s7jlx.fsf@stephe-leake.org> Date: Thu, 15 Jan 2009 23:15:24 +0100 Message-ID: NNTP-Posting-Date: 15 Jan 2009 23:15:24 CET NNTP-Posting-Host: 822bb871.newsspool4.arcor-online.net X-Trace: DXC=GJfLEYMPcl4_A0jCfgHO6>4IUK<3;DNcfSJ;bb[5IRnRBaCd37U=>XSAhb01PMT8:hD1I> X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4329 Date: 2009-01-15T23:15:24+01:00 List-Id: On Thu, 15 Jan 2009 11:29:36 -0500, Hyman Rosen wrote: > Dmitry A. Kazakov wrote: >> I am afraid that the OP's question does not make any sense. > > It looks like a C-ism... > > I suspect such deep confusion is independent of programming > language. The problem is that people get prematurely exposed to C, which is a very difficult language, requiring a lot of self discipline and thinking. Maybe this is why it is so popular among good programmers. But many, not so lucky, just fail to understanding some basic concepts that are not articulated in the language. For example, the concept that encoding and the thing being encoded are not same. I call it C-ism, a persistent damage caused by a premature exposure to C. > Look at the latest posting from the OP. He doesn't > seem to understand why he's getting an exception when trying > to assign 200 to a variable declared as -128 .. 127. But 200 fits into one byte! - cries his poor mind... > At that point, what can you do except throw up your hands? Guys here keep on trying to help, good Samaritans... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de