C
C C++ C++
what is an escaping variable?
C said:what is an escaping variable?
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.
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.
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.
Razii said:From now on, all my posts would bee cross posted to comp.lang.c.
What
are you going to do about it?
As suggested in your post's headers, I'm going to forward this to
(e-mail address removed) . I encourage the rest of you to join me.
Chris Thomasson said:Raz said:On Wed, 30 Apr 2008 21:54:37 GMT, Erik Wikströ
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,22432924p,00.htm
http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p,00.htm
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.
[...]
You are not forced to use "all" the features of C++. One could most
certainly use C++ in a kernel. However, I personally would avoid
exceptions and global ctor/dtors like the plague. I also would not use the
STL, oh well...
Razi said:And now I am using aioe.org .. their email is probably,
(e-mail address removed) , in case you need help.
I can continue with next server in the next post if you want me to,
for at least two dozen servers continuously. After that, there is
all
too reliable google.
Why omit constructors and destructors?Chris said:cr88192 said:Chris Thomasson said: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,22432924p,00.htm
http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p,00.htm
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.
[...]
You are not forced to use "all" the features of C++. One could most
certainly use C++ in a kernel. However, I personally would avoid
exceptions and global ctor/dtors like the plague. I also would not
use the STL, oh well...
one has to give up many of the features, and is still faced with many
of the other technical issues, that IMO one is better off just using C...
Use all POD's, no ctor/dtor/"AUTO-vtable":
[snip]Razii said:I switched servers to make a point.
Keith said:[snip]Razii said:I switched servers to make a point.
Ok, you've made your point. You can post anything you like to
unmoderated newsgroups, and nobody can stop you.
We already knew that.
cr88192 said:one has to give up many of the features, and is still faced with many of
the other technical issues, that IMO one is better off just using C...
Why would you have to drop templates, RAII, references, function anddizzy said:I completely agree. Once you start dropping features from C++ (templates,
exceptions, RAII, references, function and operator overloading) then you
get an incomplete language, some sort of "C with classes" (the horror!) so
you should better use C then.
Why would you have to drop templates, RAII, references, function and
operator overloading in driver code? Exceptions typically require
some form of run time support, but none of the other language features
you mention do.
Why omit constructors and destructors?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.