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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c462e8ad74872a98 X-Google-Attributes: gid103376,public From: jvl@ocsystems.com (Joel VanLaven) Subject: Re: Question on modular types Date: 1997/01/12 Message-ID: <1997Jan12.211432.36510@ocsystems.com>#1/1 X-Deja-AN: 209411565 references: organization: OC Systems, Inc. newsgroups: comp.lang.ada Date: 1997-01-12T00:00:00+00:00 List-Id: Robert Dewar (dewar@merv.cs.nyu.edu) wrote: : Tuck said (answering my query about unary minus on modular types) : "Two places: 3.5.4(19) gives the general rule that anytime the result : of a predefined operator of a modular type is outside the base range of : the type, the result is reduced modulo the modulus of the type. : The second is in a note, 4.5.4(3)." : Ah, yes, silly me, expecting to find the semantics of unary minus in : the section on operator semantics (or at least in the chapter on : expression semantics) :-) : Yes, I saw the note, but the question was where that note came from, : especially since 4.5.4(1) says that "-" on modular types has its : conventional meaning (which I can only take as the mathematical : meaning), and hence contradicts 3.5.4(19). It seems to me that the conventional mathematical meaning of "-" for a modular type IS the definition given in the note. I am sure that what is the conventional, mathematical meaning is if not the modular definition then at least debatable, and if debatable then the note is intended to show which side of the debate the RM/RM writers came out on. Perhaps it could be worded better so as not to cause confusion. -- -- Joel VanLaven