comp.lang.ada
 help / color / mirror / Atom feed
From: NiGHTS <nights@unku.us>
Subject: Ada Procedure Parameters That Use the Plus Sign
Date: Thu, 11 Jun 2015 10:24:45 -0700 (PDT)
Date: 2015-06-11T10:24:45-07:00	[thread overview]
Message-ID: <b3779aef-43d6-4186-8de5-814346f2ab0e@googlegroups.com> (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.


             reply	other threads:[~2015-06-11 17:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 17:24 NiGHTS [this message]
2015-06-11 17:36 ` Ada Procedure Parameters That Use the Plus Sign 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
replies disabled

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