- Compile-time constructors? - 2 Updates
- Hateful abusive posts by Leigh Johnston, round #2 - 6 Updates
- Every new should have a delete -- sometimes - 1 Update
David Brown <david.brown@hesbynett.no>: Nov 12 10:59PM +0100 On 12/11/2018 22:20, Rick C. Hodgin wrote: > Is this done in practice? Is there something in the standard > which allows for it to do this, without actually calling the > constructor function at runtime? Compilers can handle this in any way they want. It's unlikely that optimising compilers would call a memcpy routine - they rarely call memcpy routines even when you write "memcpy(...)" if the size is known at compile time. As Scott says, there is the "as if" rule - as long as the visible results are as if the compiler had slavishly translated statement for statement, there compiler can optimise as it sees fit. Certainly constructor functions are often inlined - if their definitions are known when they are used, and the code is fairly short. |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Nov 13 12:23AM +0100 On 12.11.2018 22:15, David Brown wrote: > construction is no more than setting fixed known values into the data > members, then the compiler can do it by individual stores or a general > memcpy - whatever it likes. A "compile time constructor" is simply a `constexpr` constructor. Cheers!, - Alf |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 12 02:23PM -0800 On Monday, November 12, 2018 at 5:15:41 PM UTC-5, Mr Flibble wrote: > You are projecting your bigotry onto your faith but it is still your > bigotry. Your beliefs are homophobic ergo you are homophobic; any > separation between the two that you claim exists is purely artificial. You mis-characterize me, Leigh. If you were in the same city as I am, I would enjoy going out to eat or to help you work on your car or other things. https://www.merriam-webster.com/dictionary/bigotry big·ot·ry | \ˈbi-gə-trē \ plural bigotries Definition of bigotry 1 : obstinate or intolerant devotion to one's own opinions and prejudices : the state of mind of a bigot overcoming his own bigotry 2 : acts or beliefs characteristic of a bigot racial bigotry will not tolerate bigotry in our organization What I try and do is teach you that it's not Christians, or me, who judge sin ... but it is God. And what I try to teach you about His judgment is that it is final, and eternal. All sin is rebellion against God. He constructed this universe to run on truth. Falseness is a cancer, a dis- ease, that is not tolerated. This is not just homosexuality, by the way. This is all sin. Thief. Adulterer. Drunkard. All types of sin, of every variety there is. We are all sinners (myself included), which is why I also need Jesus, to take my sin away from me and set me free from it. -- Rick C. Hodgin |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 12 10:25PM On 12/11/2018 22:23, Rick C. Hodgin wrote: > We are all sinners (myself included), which is why I also > need Jesus, to take my sin away from me and set me free > from it. QED. /Flibble -- "You won't burn in hell. But be nice anyway." – Ricky Gervais "I see Atheists are fighting and killing each other again, over who doesn't believe in any God the most. Oh, no..wait.. that never happens." – Ricky Gervais "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Bryne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say." |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 12 02:36PM -0800 On Monday, November 12, 2018 at 5:25:20 PM UTC-5, Mr Flibble wrote: > QED. As you say with your going back to read what I wrote which proves what you say is wrong, "It's different," indicating you were not seeking the truth, but something else... It's different, Leigh. You call it the same, but that does not make it so. I care about your eternal soul. Enough to teach you the truth, and undergo your many assaults toward me. -- Rick C. Hodgin |
David Brown <david.brown@hesbynett.no>: Nov 12 11:43PM +0100 On 12/11/2018 23:18, Rick C. Hodgin wrote: >> <https://www.youtube.com/watch?v=91DSNL1BEeY> > Thought you didn't do videos. Ahhhh... I see. Just videos > I post. Got it. I rarely watch videos that /anyone/ posts - there has got to be a good reason for them. I find it an almost totally useless medium for most tutorials and the like - they are usually far too slow for my liking, occasionally to fast, and invariably missing in detail. (Others can have different opinions and preferences, I can only speak for myself.) Of course I don't watch the video links you post - you make it clear in your posts that they are pointless nonsense. (Again, I know you think differently.) However, Rowan Atkinson is best watched on video, if you can't see him live. That's fact, not opinion :-) And I gave a link to the script for those that prefer not to watch the video. |
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Nov 12 03:11PM -0800 On 11/12/2018 12:53 PM, Mr Flibble wrote: > Bloke: "That's why three random dudes showed up at you birth with gifts. > LOL." > Jesus "Fuck you." Sometimes, I think it of like: _______________________ State A: Virgin. Mutation:(A->B): Abducted by Aliens, and implanted with an divine experiment, or perhaps the best try of a clone of God (head Alien) itself. State B: No longer a Virgin. _______________________ Humm... |
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Nov 12 03:22PM -0800 On 11/12/2018 12:37 PM, Melzzzzz wrote: >> Me, yes. But not you. > He never asks what value insects life has to humans. Take that to > another level... I love the ants that farm: https://youtu.be/43id_NRajDo Strange beings: https://youtu.be/-xW9oy6MFTQ Why do they seem to resemble alien like beings? ;^) |
woodbrian77@gmail.com: Nov 12 01:52PM -0800 On Monday, November 12, 2018 at 7:27:16 AM UTC-6, Paavo Helde wrote: > This is a fine example of why using 'new' and raw pointers is dangerous. > The allocations should look like something this instead: > std::unique_ptr<ICarModel> modelA = std::make_unique<Model_B>(red); I agree in that case, but would mention this: https://stackoverflow.com/questions/38780596/how-to-handle-constructors-that-must-acquire-multiple-resources-in-an-exception#38780597 I use that approach here: https://github.com/Ebenezer-group/onwards/blob/master/src/cmw/Buffer.hh and find that compilers handle it better than a unique_ptr based approach. Brian Ebenezer Enterprises - Enjoying programming again. http://webEbenezer.net |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment