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,fcf8ea94b94d6941,start X-Google-Attributes: gid103376,public From: f97stdi@dd.chalmers.se (Staffan Dittmer) Subject: Modular type. What is it and why? Date: 1999/04/05 Message-ID: <7ean3c$79m$1@eol.dd.chalmers.se>#1/1 X-Deja-AN: 462907892 Content-Type: text/plain; charset=us-ascii Organization: Chalmers University of Technology, Sweden Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-04-05T00:00:00+00:00 List-Id: This might be a simple one but i can't figure it out. What is a modular type, as opposed to the integer? When is it useful? Since ada relies so heavily on types I guess it's not by accident that the standard library includes modular_io. But why? Could someone please enlighten me on this subject. An example of usage would be nice. I've checked the RM but to be perfectly honest I didn't understand it. Thanks in advance Staffan Dittmer