what is an escaping variable
  Home FAQ Contact Sign in
comp.lang.c++ only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.c++ Profile…
 Up
what is an escaping variable         


Author: C C++ C++
Date: Nov 12, 2007 07:46

what is an escaping variable?
47 Comments
Re: what is an escaping variable         


Author: Victor Bazarov
Date: Nov 12, 2007 07:50

C C++ C++ wrote:
> what is an escaping variable?

A variable the control over whom you're losing?

I don't know of "escaping variable", but there is "escape sequence"
in formatted output...

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
no comments
Re: what is an escaping variable         


Author: Roland Pibinger
Date: Nov 12, 2007 13:56

On Mon, 12 Nov 2007 15:46:43 -0000, C C++ C++ wrote:
>what is an escaping variable?

A variable that escapes a function?
http://en.wikipedia.org/wiki/Escape_analysis
BTW, scope bound resource management using RAII is a panacea for
avoiding escaping variables.

--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
no comments
Re: what is an escaping variable         


Author: Kira Yamato
Date: Nov 12, 2007 14:01

On 2007-11-12 16:56:49 -0500, rpbg123@yahoo.com (Roland Pibinger) said:
> On Mon, 12 Nov 2007 15:46:43 -0000, C C++ C++ wrote:
>> what is an escaping variable?
>
> A variable that escapes a function?
> http://en.wikipedia.org/wiki/Escape_analysis
> BTW, scope bound resource management using RAII is a panacea for
> avoiding escaping variables.

Can you give an example?

--

-kira
no comments
Re: what is an escaping variable         


Author: Roland Pibinger
Date: Nov 12, 2007 14:53

On Mon, 12 Nov 2007 17:01:35 -0500, Kira Yamato
earthlink.net> wrote:
>On 2007-11-12 16:56:49 -0500, rpbg123@yahoo.com (Roland Pibinger) said:
>
>> On Mon, 12 Nov 2007 15:46:43 -0000, C C++ C++ wrote:
>>> what is an escaping variable?
>>
>> A variable that escapes a function?
>> http://en.wikipedia.org/wiki/Escape_analysis
>> BTW, scope bound resource management using RAII is a panacea for
>> avoiding escaping variables.
>
>Can you give an example?

An example of 'escaping' variables or RAII?
no comments
Re: what is an escaping variable         


Author: Kira Yamato
Date: Nov 12, 2007 15:09

On 2007-11-12 17:53:53 -0500, rpbg123@yahoo.com (Roland Pibinger) said:
> On Mon, 12 Nov 2007 17:01:35 -0500, Kira Yamato
> earthlink.net> wrote:
>
>> On 2007-11-12 16:56:49 -0500, rpbg123@yahoo.com (Roland Pibinger) said:
>>
>>> On Mon, 12 Nov 2007 15:46:43 -0000, C C++ C++ wrote:
>>>> what is an escaping variable?
>>>
>>> A variable that escapes a function?
>>> http://en.wikipedia.org/wiki/Escape_analysis
>>> BTW, scope bound resource management using RAII is a panacea for
>>> avoiding escaping variables.
>>
>> Can you give an example?
>
> An example of 'escaping' variables or RAII?

Escaping variable. I just want to see what that code would like.
Show full article (0.86Kb)
no comments
Re: what is an escaping variable         


Author: Roland Pibinger
Date: Nov 12, 2007 16:02

On Mon, 12 Nov 2007 18:09:28 -0500, Kira Yamato wrote:
>On 2007-11-12 17:53:53 -0500, rpbg123@yahoo.com (Roland Pibinger) said:
>> On Mon, 12 Nov 2007 Kira Yamato wrote:
>>> Can you give an example?
>>
>> An example of 'escaping' variables or RAII?
>
>Escaping variable. I just want to see what that code would like.
>
>And perhaps if someone has time, show me what this RAII is and how it
>avoids escape variables. But I sense that would be asking for too much.

From Wikipedia:
"If a subroutine allocates an object and returns a pointer to it, the
object can be accessed from undetermined places in the program
no comments
Re: what is an escaping variable         


Author: Roland Pibinger
Date: Nov 12, 2007 16:09

On Tue, 13 Nov 2007 00:02:21 GMT, Roland Pibinger wrote:
>When you make the desctuctor of the managing object private (as shown
>in the RAII example) the managed objects cannot escape from the
>enclosing scope.

Should have been: "When you make the copy constructor of the managing
object private ...". Sorry.
no comments
Rusty's message to C++ programmers (C or C++)         


Author: Raz
Date: May 5, 2008 15:24

On Wed, 30 Apr 2008 21:54:37 GMT, Erik Wikströ
>Obviously his knowledge of C++ is not as good as it should be.

As I said, I will find the link again. His knowledge of C++ is just
fine.

http://www.builderau.com.au/video/soa/Rusty-s-message-to-C-programmers/0,2000064338...

http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p...

So here is an expert of who believes that you don't need C++ to
program low level. C++ brings extra complexity that is not needed. C
is #1 language to program in lower level. We can also add that you
don't need C++ to program in higher level either, as you can use
easier and better languages such as C#, Java, Ruby on Ralis, Perl,
Python.
no comments
Re: Rusty's message to C++ programmers (C or C++)         


Author: Ian Collins
Date: May 5, 2008 15:27

Raz wrote:

Please confine your trolling to where it belongs.

--
Ian Collins.
no comments
 
1 2 3 4 5