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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,66bb9de12d0a33f9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-04 17:42:39 PST Path: bga.com!news.sprintlink.net!hookup!news.kei.com!ub!csn!perez From: perez@oldcolo.com (Carlos Perez) Newsgroups: comp.lang.ada Subject: Re: Dimensional Data Types Date: 5 Dec 1994 01:39:46 GMT Organization: Old Colorado City Communications (oldcolo.com - login "newuser") Message-ID: <3btr12$a0j@news-2.csn.net> References: <3briug$9ab@news-2.csn.net> NNTP-Posting-Host: 192.160.122.1 X-Newsreader: TIN [version 1.2 PL2] Date: 1994-12-05T01:39:46+00:00 List-Id: Carlos Perez (perez@oldcolo.com) wrote: : My point is that Ada won't permit a simple cast as you described, unless : I missed something? Hm, I think I did miss something... SECONDS and VOLTS are private types derived from the same parent? GNAT permits me to cast one private type into another as long as they derive from the same parent. Somehow, I thought SECONDS was a new numeric rather than a new private. Anyways, I've never tried to cast private types... been out of the Ada coding business for too long :-( Sorry for the wasted bandwidth. I'll check my LRM tomorrow for the rules on type conversion and privates. : : Do-While Jones : When-Others Perez "brain raised Storage_Error" Perez