comp.lang.ada
 help / color / mirror / Atom feed
* User defined implicit conversion
@ 2019-10-30 19:43 Alain De Vos
  2019-10-30 19:58 ` Simon Wright
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alain De Vos @ 2019-10-30 19:43 UTC (permalink / 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 ;


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-06  6:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 19:43 User defined implicit conversion Alain De Vos
2019-10-30 19:58 ` 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

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