|
|
Up |
|
|
  |
Author: C C++ C++C C++ C++ Date: Nov 12, 2007 07:46
what is an escaping variable?
|
| |
|
| | 47 Comments |
|
  |
Author: Victor BazarovVictor 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 |
|
  |
Author: Roland PibingerRoland 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?
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
|
| |
| no comments |
|
  |
Author: Kira YamatoKira 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?
Can you give an example?
--
-kira
|
| |
| no comments |
|
  |
Author: Roland PibingerRoland 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?
>
>Can you give an example?
An example of 'escaping' variables or RAII?
|
| |
| no comments |
|
  |
Author: Kira YamatoKira 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?
>>
>> 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 |
|
  |
Author: Roland PibingerRoland 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 |
|
  |
Author: Roland PibingerRoland 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 |
|
  |
Author: RazRaz 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.
|
| |
| no comments |
|
  |
|
|
  |
Author: Ian CollinsIan Collins Date: May 5, 2008 15:27
Raz wrote:
Please confine your trolling to where it belongs.
--
Ian Collins.
|
| |
| no comments |
|
|
|
|
|
|