comp.lang.ada
 help / color / mirror / Atom feed
From: Alain De Vos <devosalain71@gmail.com>
Subject: User defined implicit conversion
Date: Wed, 30 Oct 2019 12:43:03 -0700 (PDT)
Date: 2019-10-30T12:43:03-07:00	[thread overview]
Message-ID: <d9269cae-93e5-428c-9c7c-a7a1f5679806@googlegroups.com> (raw)

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 ;


             reply	other threads:[~2019-10-30 19:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-30 19:43 Alain De Vos [this message]
2019-10-30 19:58 ` User defined implicit conversion Simon Wright
2019-10-30 20:39 ` Egil H H
2019-10-30 21:26 ` Randy Brukardt
2019-10-30 22:17   ` Dmitry A. Kazakov
2019-11-06  6:19   ` G. B.
2019-10-31 11:18 ` AdaMagica
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox