comp.lang.ada
 help / color / mirror / Atom feed
* Redefining "in" "operator"
@ 2018-02-05 16:26 Alejandro R. Mosteo
  2018-02-05 16:39 ` Jeffrey R. Carter
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alejandro R. Mosteo @ 2018-02-05 16:26 UTC (permalink / raw)


It just dawned on me that I could want to define an "in" function for a 
couple of my types, but this is not allowed.

I tried searching but the term is so general that I only find unrelated 
threads, so here it goes:

Are there special reasons not to allow something like that? I think "in" 
is not an operator in the Ada RM sense but now I'm curious why the 
special treatment.

It's merely to avoid subversion of the default behavior? Couldn't it 
only be allowed for couples of types where it doesn't apply?

Thanks,
Álex.


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

end of thread, other threads:[~2018-02-06 18:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 16:26 Redefining "in" "operator" Alejandro R. Mosteo
2018-02-05 16:39 ` Jeffrey R. Carter
2018-02-06  0:48   ` Randy Brukardt
2018-02-06 18:07     ` Jeffrey R. Carter
2018-02-05 16:43 ` J-P. Rosen
2018-02-05 17:23 ` Dmitry A. Kazakov
2018-02-05 17:41 ` Alejandro R. Mosteo

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