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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII X-Received: by 10.180.96.225 with SMTP id dv1mr175700wib.6.1364345315435; Tue, 26 Mar 2013 17:48:35 -0700 (PDT) Path: p18ni19830wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.131.MISMATCH!xlned.com!feeder3.xlned.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!backlog2.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!goblin3!goblin.stu.neva.ru!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Sat, 23 Mar 2013 22:53:15 +0100 Organization: A noiseless patient Spider Message-ID: References: <514874d3$0$6628$9b4e6d93@newsspool2.arcor-online.net> <1o60gooo8xvba$.1ei9cebb07zek$.dlg@40tude.net> <514897bd$0$6641$9b4e6d93@newsspool2.arcor-online.net> <1oqwvcemo8dha$.hevuedtz8eze.dlg@40tude.net> <14aijp8ckzahf$.1ilfm1nw6qgyt$.dlg@40tude.net> <1xg9wka6slgit.1q0leacagdeuv.dlg@40tude.net> <10cliooad0uk.1prxobehp9yr0.dlg@40tude.net> <1upbnm5cl13bs$.pzszb0e3v9zo.dlg@40tude.net> Mime-Version: 1.0 Injection-Date: Sat, 23 Mar 2013 21:51:11 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="31508"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BKaJF8TNLsZ/FeP6PFs57" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <1upbnm5cl13bs$.pzszb0e3v9zo.dlg@40tude.net> Cancel-Lock: sha1:6GrePWZjTMKwdv1Y7iU0rIZy+T8= X-Enigmail-Version: 1.5.1 X-Original-Bytes: 3129 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2013-03-23T22:53:15+01:00 List-Id: Le 23/03/2013 11:19, Dmitry A. Kazakov a �crit : > Of course it is the same assignment, according to you. Why the effect is > different? Because it operates on different variables. Any subprogram that contains an "if" behaves differently depending on the parameters. It does not mean that each possible value of the parameters inherits a different subprogram. >> Once again: a subtype is just an extra check added in some contexts to >> some objects. It does not define a new set of values, i.e. the "1" for >> Positive is the same as the "1" for Integer (while it is different from >> the "1" of some user defined type). > > And 0xFF is same for signed and unsigned char. This is why C is called > weakly typed. It is no matter how do you call what is going on. Only the > effect matters. The effect is that the behavior changes. In C yes, there is only one integer type. Not in Ada. What's your point? -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr