comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Problem where a function is invoked once but called twice (when invocation is within an allocator).
Date: Thu, 05 May 2011 07:43:08 +0200
Date: 2011-05-05T07:43:08+02:00	[thread overview]
Message-ID: <iptdde$hpm$1@dont-email.me> (raw)
In-Reply-To: <b0b66310-3c0a-4d48-a3bc-2293931e60a6@s41g2000prb.googlegroups.com>

Le 05/05/2011 05:52, Rod Kay a �crit :
>     Any clues on why the use of an allocator would cause a single
> function invocation to be called twice ?
>
>
>     the_Movie : media.Video.view := new_Movie;
>
>     the_next_Frame :              openGL.Image :=
> the_Movie.next_Frame;                                        -- case 1
>     the_next_Frame : access openGL.Image := new
> opengl.Image' (the_Movie.next_Frame);   -- case 2
>
>     In the 1st case, the 'next_Frame' function is called once.
>     In the 2nd case, it is called twice.
>

Wouldn't Image be controlled by any chance? In that case, the assignment 
may involve the creation of an intermediate object
-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Adalog a d�m�nag� / Adalog has moved:
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00



  reply	other threads:[~2011-05-05  5:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05  3:52 Problem where a function is invoked once but called twice (when invocation is within an allocator) Rod Kay
2011-05-05  5:43 ` J-P. Rosen [this message]
2011-05-05  6:12   ` Rod Kay
2011-05-05  8:22   ` Yannick Duchêne (Hibou57)
2011-05-05 10:59     ` Rod Kay
2011-05-05 17:07       ` Florian Weimer
2011-05-06  0:49         ` Rod Kay
2011-05-06 23:41           ` Anh Vo
2011-05-07  1:38             ` Rod Kay
2011-05-07  9:06               ` Georg Bauhaus
2011-05-07  9:45                 ` Rod Kay
2011-05-09 16:01               ` Anh Vo
2011-05-09 23:00                 ` Dan
2011-05-10  0:14                   ` Anh Vo
2011-05-10  0:24                     ` Rod Kay
2011-05-10  0:55                       ` Anh Vo
2011-05-11 17:23                         ` Dan
2011-05-12 22:35                         ` Rod Kay
2011-05-13 17:40                           ` Ludovic Brenta
2011-05-10  0:21                   ` Rod Kay
  -- strict thread matches above, loose matches on Subject: below --
2011-05-14  0:27 Rod Kay
replies disabled

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