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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:6957:: with SMTP id n23mr1863704qtr.305.1572464583948; Wed, 30 Oct 2019 12:43:03 -0700 (PDT) X-Received: by 2002:a9d:6c57:: with SMTP id g23mr1234056otq.149.1572464583671; Wed, 30 Oct 2019 12:43:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!j16no4708478qtl.0!news-out.google.com!d16ni514qtp.0!nntp.google.com!j16no4708469qtl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 30 Oct 2019 12:43:03 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:a03f:e3e9:4d00:1260:4bff:fe89:deb2; posting-account=kTRirAoAAACnF_wtAOSamxYBSVvmJuCa NNTP-Posting-Host: 2a02:a03f:e3e9:4d00:1260:4bff:fe89:deb2 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: User defined implicit conversion From: Alain De Vos Injection-Date: Wed, 30 Oct 2019 19:43:03 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57390 Date: 2019-10-30T12:43:03-07:00 List-Id: Casting from one type to another is a real pain. Does the functionality "User defined implicit conversion" exists? If not are there strategies, general rules, to limit conversion to a minimum ? We don't want as concatination : result := to_type_a (from_type_a (X) & from_type_a (Y)) ; when you could have : result := X & Y ;