Slashdot Mirror


User: hazah

hazah's activity in the archive.

Stories
0
Comments
1,590
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,590

  1. Re:Your 2007 Comments on C++ on Linus Torvalds Will Answer Your Questions · · Score: 1

    IIRC in C++98 when you return objects from function by value, a temporary object is created using a copy constructor on whatever you've passed as an argument to the return statement. Then the function's stack is unwinded. Then if the return value is used in the above scope, the temporary object is passed to whatever function uses it (copy constructor, assignment operator or a function that takes a reference to the object). Then the temporary object is destroyed just before control returns to the parent function.

    At no point can you have a destructor call that isn't paired up with a completed constructor call. Failing that, the compiler is simply non-standard and is out of the domain of what is actually called C++. C++ explicitly states that a destructor is called only for objects for which at least one constructor had completed execution successfully (exceptions in the constructor, for instance prevent that from being true).

    If an object is returned by value, then the return address is captured for the callee stack frame, the returned object is placed at that address and is NOT destroyed once the function's scope finishes, instead it's scoped to to be destroyed in the caller's stack frame. This can be done by copying an object from the current frame into the parent (initialze space in caller, construct a local in callee, copy local to caller, destroy local, caller destroys result), but is often optimized away to build the object directly in the calling function stack (callee constructs directly in caller's scope, caller destroys, skipping the temporary construct/destroy cycle entierly).

  2. Re:If the rules were balanced on Automated DMCA Takedown Notices Request Censorship of Legitimate Sites · · Score: 1

    You don't need scifi to understand the problem even. It's so stupidly simple it's sad. The word is context, and policy cannot handle it from a fundamental perspective.

  3. Keep it rolling boys on Automated DMCA Takedown Notices Request Censorship of Legitimate Sites · · Score: 2

    You're obviously doing something right!

  4. Re:If I don't have a list of jobs to do, on They Work Long Hours, But What About Results? · · Score: 5, Insightful

    As one on the recieving end of such treatment, all I can say is thank you for seeing the light. As I'm constantly able to use my "free" time to do research on random subjects, more often than I tend to read about different aspects of what I'm tasked on. Each day brings new insight as a result. This allows me to constantly be a number of steps ahead on my approach on each new project. It is a balancing act, and you have to be careful not to over do it, but having the freedom to make such decisions had been invaluable to me as a tool of self improvement. I would even say it had worked for me to do this whenever a mental break was required. A 5 minute read on an equally important though currently unrelated topic is enough time to step away from a problem to refresh yourself and see it in a slightly new way. Our greatest mistake is to treat human beings as machines and expect them to thrive.

  5. Re:Make it illegal on Hiring Smokers Banned In South Florida City · · Score: 1

    They don't really have the right *know* this about me in the first place.

  6. Re:Make it illegal on Hiring Smokers Banned In South Florida City · · Score: 1

    one can support abortion, gunrights, but not the death penalty. mind blown?

  7. Re:Make it illegal on Hiring Smokers Banned In South Florida City · · Score: 1

    It isn't the activity that's being banned that's the issue, it's the fact that such a ban is allowed to happen. It can become extreeme sports. Then it can be basketball, then riding your bike to work, all because it's "risky behaviour" and has "potential for self harm". It's absurd!

  8. Re:Make it illegal on Hiring Smokers Banned In South Florida City · · Score: 1

    Ok... I'll spell it out then. Doing anything and everything you please is not practical what-so-ever. Specifically, telling/forcing people to do things your way. No human being has a natural right to that aspect of another human being's life, be it an emperor, king, president, teacher, or parent. Such interactions must rely on concent and practical necessity. A parent offers a roof and a meal in exchange for good behaviour (a bit of an over simplification to point out that an exchange is taking place even when it comes to families). A president offers an army, etc... You cannot go around hitting people because you feel like it, because you will have a mob chase your ass down. By the very nature of the situation we, human beings, find ourselves in (the human condition, if you will), it's questionable whether we're doing ourselves any favours by having such laws. It's compounded by the fact that while we have evidence that tobaccoo has harmful effects, that it's still a drop in the ocean compared to what we are exposed to throughout life. I whole heartedly reject that this is justified based on the merits of the situation. This is people poking their noses into what they have absolutely no business poking their noses into, and I hope they end up sticking into a shit pile for it.

  9. Re:Make it illegal on Hiring Smokers Banned In South Florida City · · Score: 5, Insightful

    It's not about a right to do anything and everything you please, it's about the lack of the rights of others to stop you.

  10. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 3, Insightful

    Never mind... i'm an idiot :). yeah a bit. Oh well.

  11. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 1

    This is curious, what is referncing 'self' here?

  12. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 1

    I'm not sure what you mean.

  13. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 1

    And added nothing of value.

  14. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 1

    New*

  15. Re:A year already? on How Steve Jobs' Legacy Has Changed · · Score: 0

    Now level of stupid achieved. Good for you.

  16. Re:South Park on New Study Shows Universe Still Expanding On Schedule · · Score: 1

    It just rolls off the tongue.

  17. Re:it worries me on For Obama, Jobs, and Zuckerberg, Boring Is Productive · · Score: 1

    If that's the indicator of obama's mental capacity, I really wonder about georgy boy...

  18. Re:it worries me on For Obama, Jobs, and Zuckerberg, Boring Is Productive · · Score: 1

    Have you peaked to make sure it's not a 13 year old boy?

  19. Re:Bizarre Metrics on Why Klout's Social Influence Scores Are Nonsense · · Score: 1

    Are you for real?? This is a serious question? Even IF what you suggest is true, there's still no data on what the specific differences *are*. Your personal haphazard observations are statistically insignificant. We have a long way to go before we can even define what a human is to begin with, let alone what the variants truly are. Stop being stupid, you'll live happier.

  20. Re:It isn't new on Kepler Sees Partial Exoplanetary Eclipse · · Score: 1

    I suppose I can flex a bit to get it :). Sorry for ruining the pun :P. I guess?

  21. Re:It isn't new on Kepler Sees Partial Exoplanetary Eclipse · · Score: 1

    Something is off with your calibaration. "in our own solar system" is right there, in the second sentence.

  22. Re:Bizarre Metrics on Why Klout's Social Influence Scores Are Nonsense · · Score: 2

    And we all know, it's those damn pigments that are at fault here. Right? Is that your point?

  23. Re:Summary of the last 15 years on CmdrTaco Looks Back on Fifteen Years of Slashdot · · Score: 1

    In soviet russia... In korea, only old people...

  24. Re:The Problem with Trading Hands on CmdrTaco Looks Back on Fifteen Years of Slashdot · · Score: 1

    Ahh forget the whole thing.

  25. Re:Compare the costs of social programs to researc on French Science and Higher Education Programs Avoid Austerity · · Score: 1

    Sometimes, as in these times, the end state is simply non-existent until the dissatisfaction reaches the tipping point.