comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Interresting difference in Normal-Returns/Expression-Functions and Extended-Returns.
Date: Tue, 23 Apr 2013 08:24:29 -0700 (PDT)
Date: 2013-04-23T08:24:29-07:00	[thread overview]
Message-ID: <f78c7033-dd44-4654-9e20-9a051dc3acfd@googlegroups.com> (raw)
In-Reply-To: <f90147d5-dcd2-41f0-abf7-9bbecf06cd2d@googlegroups.com>

On Monday, April 22, 2013 11:32:51 PM UTC-7, egilhh wrote:
> On Monday, April 22, 2013 8:27:09 PM UTC+2, Shark8 wrote:

> 
> >       Return Result : Not Null Access Testing:= New Testing(New String'(Input));
> 
> 
> 
> When the anonymous access type goes out of scope, it will block, waiting for 
> the newly created task to complete. 

But why wouldn't that affect Make_EF/Make_ER and Make_NR equally?  

I'm planning on delving into this further to figure out just what the rules are with respect to anonymous access types, task termination, and scope.  You may be right, but I'm not yet convinced.  (I mean, it's possible that this could explain the results with GNAT, but that doesn't mean GNAT is following the language correctly.)

  
> Not everyone has the same hardware as you, and your code may produce 
> different results on less cores or slower computers. Adding a delay 2.0 as
> Dmitry said, will reduce the likelyhood of that happening.

I just don't get this.  It's common for people asking questions about the language to post reduced cases or minimal code, i.e. to post the smallest code they can think of that demonstrates the problem.  This is a good thing, because it lets the rest of us focus on the actual question, rather than on details that are irrelevant to the question.  And everybody here is picking on his example as if this were production code.  Not to mention picking on his capitalization.

Sheesh.

                              -- Adam



  reply	other threads:[~2013-04-23 15:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 18:27 Interresting difference in Normal-Returns/Expression-Functions and Extended-Returns Shark8
2013-04-22 19:13 ` Dmitry A. Kazakov
2013-04-22 20:11   ` Shark8
2013-04-23  6:15     ` Simon Wright
2013-04-23  7:35     ` Stephen Leake
2013-04-23  8:58     ` Dmitry A. Kazakov
2013-05-02  2:20     ` Randy Brukardt
2013-05-02  4:41       ` Shark8
2013-04-23  6:32 ` egilhh
2013-04-23 15:24   ` Adam Beneschan [this message]
2013-04-24  5:56     ` egilhh
2013-04-24 14:40       ` Adam Beneschan
2013-04-25  5:30         ` egilhh
2013-04-25  5:41           ` Shark8
2013-04-23 16:00 ` Adam Beneschan
2013-04-23 16:52   ` Simon Wright
2013-04-23 17:57     ` Adam Beneschan
2013-04-25  8:48       ` egilhh
2013-04-25 15:19         ` Adam Beneschan
2013-05-02  2:33         ` Randy Brukardt
2013-05-02  2:38       ` Randy Brukardt
2013-05-02 16:15         ` Adam Beneschan
2013-05-02 22:00           ` Randy Brukardt
2013-05-03  1:11         ` Adam Beneschan
2013-05-03  5:34           ` Simon Wright
2013-05-03  6:43           ` egilhh
2013-05-03 16:49             ` Adam Beneschan
2013-05-03 23:09           ` Randy Brukardt
2013-04-23 23:00     ` Shark8
2013-04-23 23:16       ` Adam Beneschan
2013-05-02  2:28   ` Randy Brukardt
2013-05-02 16:37     ` Adam Beneschan
2013-04-23 16:33 ` Simon Wright
replies disabled

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