comp.lang.ada
 help / color / mirror / Atom feed
* Ada Procedure Parameters That Use the Plus Sign
@ 2015-06-11 17:24 NiGHTS
  2015-06-11 17:36 ` David Botton
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: NiGHTS @ 2015-06-11 17:24 UTC (permalink / raw)


I recently stumbled across some Ada code that appends a plus sign in front of a parameter name of a function or procedure call. From the context it seems like it is doing a forced cast between two incompatible types. 

Here is one example I found in the AdaGtk demo create_tree_view.adb line 243:

Gtk_New (Tree, +Model);


My questions are:

1. What is this called? Is there a name for this?

2. What exactly is happening here?

3. Is it safe? Should it be avoided?

4. Is there another way to accomplish this without the use of '+' ?

5. Where can I find out more about this?


Thank you for your help.


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

end of thread, other threads:[~2015-06-12 15:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-11 17:24 Ada Procedure Parameters That Use the Plus Sign NiGHTS
2015-06-11 17:36 ` David Botton
2015-06-11 18:21   ` NiGHTS
2015-06-11 18:52     ` David Botton
2015-06-12  8:00 ` Dmitry A. Kazakov
2015-06-12  8:45 ` Jacob Sparre Andersen
2015-06-12 15:19 ` NiGHTS

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