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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-01 01:23:38 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.25.12.36!oleane.net!oleane!ciril.fr!univ-lille1.fr!news.cict.fr!tls.cena.fr!news.stna.dgac.fr!not-for-mail From: MALAISE Pascal Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language Date: Wed, 01 Aug 2001 10:22:43 +0200 Organization: THALES-ATM Message-ID: <3B67BC53.F1D3A1E4@stna.dgac.fr> References: <3B6555ED.9B0B0420@sneakemail.com> <9ff447f2.0107301653.c8f5e94@posting.google.com> <3B6624E6.DF734E5C@sneakemail.com> <9ff447f2.0107311725.5af099ae@posting.google.com> <3B6784C6.200B0B47@sneakemail.com> NNTP-Posting-Host: stx29.stna.dgac.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.stna.dgac.fr 996654162 7113 143.196.28.49 (1 Aug 2001 08:22:42 GMT) X-Complaints-To: inn@news.stna.dgac.fr NNTP-Posting-Date: 1 Aug 2001 08:22:42 GMT X-Accept-Language: en X-Mailer: Mozilla 4.76 [en] (X11; U; OSF1 V4.0 alpha) Xref: archiver1.google.com comp.lang.ada:10923 Date: 2001-08-01T08:22:42+00:00 List-Id: Russ wrote: > I think Python has an extremely simple solution to this so-called > "problem". Python simply disallows assignment inside an "if" > conditional. Does Python allow assignement in some other instructions, like a return statement? What about "return(A=5)"? Does the reader (and the compiler) have to check the return type of the function to know if the value is boolean (A = 5) or integer (5, also assigned to A)? This would be very ambiguous. -- Pascal MALAISE Thales ATM - PHIDIAS - MW Tel: +33 5 62 14 56 26 (prof) mailto:Pascal_MALAISE@stna.dgac.fr Fax: +33 5 62 14 57 23 (priv) mailto:malaise@magic.fr