* Explicit interfaces of scalar types
@ 2010-03-01 14:28 Georg Bauhaus
0 siblings, 0 replies; only message in thread
From: Georg Bauhaus @ 2010-03-01 14:28 UTC (permalink / raw)
Ada Gem #80, posted on the AdaCore's own Webnews Bulletin
Board (:-), is about how to call overloaded functions like
Shift_Left in a language that disallows overloading: SPARK.
The solution is to declare SPARK functions to rename the
overloaded Ada functions.
Is there a more general solution involving a small change
to Ada's type system and permitting AS-IF overriding instead?
Like this:
Make the scalar types' operations explicit in some interface.
Then use overriding, not overloading, together with
convention Intrinsic (so that the compiler can omit the
usual dispatching circuitry). Am I making sense?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-01 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-01 14:28 Explicit interfaces of scalar types Georg Bauhaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox