- Why do some people hate namespace prefixes? - 6 Updates
- Auto-incrementing or auto-decrementing values at compile-time - 9 Updates
- special string-implementation - 4 Updates
- [Jesus Loves You] Bible boring to you? Try this... - 3 Updates
- static constexpr in a class - 1 Update
- What I'm doing wrong here? - 2 Updates
wyniijj@gmail.com: Apr 22 06:14PM -0700 Jorgen Grahn於 2019年4月23日星期二 UTC+8上午12時07分57秒寫道: > IMHO you're missing part of the point of namespaces. You're supposed > to /know/ when you're inside it, much like you're supposed to know > what planet you're on. OK (some namespace name is deliberately long, e.g. >10 characters) > talking to my sister. I wouldn't call him "Donald Grahn" to make it > clear I'm not talking about Donald Duck, or Knuth. If I did, my > sister would be confused and possibly worried. but the compiler doesn't know what my mind-state is in. Compiler doesn't even know most of standard library's codes. Ex: In file bits/stl_algobase.h, I'm still bugged why the line swap(*__a,*__b) is not written as std::swap(*__a,*__b), which caused compilation of one of my program failed. > -- > // Jorgen Grahn <grahn@ Oo o. . . > \X/ snipabacken.se> O o . I checked my codes to see that I still use namespce prefix in cases they are defined in different files (in the same namespace). |
Rosario19 <Ros@invalid.invalid>: Apr 23 09:41AM +0200 On Fri, 19 Apr 2019 19:09:04 +0100, Bart wrote: >In the next version, a qualifier, ie. a module prefix, would only be >needed if 'string' was ambiguous, ie. more than one exported 'string' >was visible from that place in the code.) i not agree in use namespace or liking facility the way for me it is in the start of code make clear what operator or function call, where is the file executable where the function is, what is its name in that file (and prototiype afther for compiler check right arguments) for example if i want call '*' i would write define '*' "file.dll:operatorNameInThatFile" first of call '*' in 3*4 |
"Fred.Zwarts" <F.Zwarts@KVI.nl>: Apr 23 11:10AM +0200 "Ike Naar" schreef in bericht news:slrn3nf4qbk18l.bos.ike@faeroes.freeshell.org... >The problem is that other namespaces may have defined 'string' as well. >So if you see unadorned 'string' it's not clear whether std::string, >foo::string or bar::string was intended. If you really are so unsure about the context in which you are programming, it might be even better to use ::std::string, because otherwise it is unclear whether foo::std::string, or bar::std::string was intended. '::' is ONLY TWO EXTRA CHARACTERS. :-) It is probably a matter of taste. In mosts contexts it is perfectly clear that there is no foo::string, nor foo::std. No confusion in that case if an unadorned 'string' or unadorned 'std' is used. If confusion is possible, than a namespace prefix is very useful. I agree with that. |
Bonita Montero <Bonita.Montero@gmail.com>: Apr 23 01:32PM +0200 > Ex: In file bits/stl_algobase.h, I'm still bugged why the line > swap(*__a,*__b) is not written as std::swap(*__a,*__b), which > caused compilation of one of my program failed. The discussion is about omitting napespace-prefixes when a namespace is chosen or a function or type of a namespace is chosen; and not about missing chosen namespaces. |
Vir Campestris <vir.campestris@invalid.invalid>: Apr 23 09:48PM +0100 Feedback from our group at work. Out of 100 people signed up... I got about half a dozen "using namespace std is evil", one who said "but only in headers" and a couple of explicit don't cares. Leaving about 90% who couldn't give a damn. Andy |
Ian Collins <ian-news@hotmail.com>: Apr 24 08:51AM +1200 On 24/04/2019 08:48, Vir Campestris wrote: > std is evil", one who said "but only in headers" and a couple of > explicit don't cares. > Leaving about 90% who couldn't give a damn. That's about what I would expect form a similar number at my work. Mind you, the numbers would be much the same for any style question. Only those with a strong opinion will speak up, the majority couldn't give a damn! -- Ian. |
Daniel <danielaparker@gmail.com>: Apr 23 09:34AM -0700 On Friday, April 19, 2019 at 8:47:54 AM UTC-4, Rick C. Hodgin wrote: > Both of you will learn soon enough the significance of the messages > I post ... One type of message I post is far more important "One's pride will bring him low ..." Proverbs 29:23 For an alternative take on Christianity from Serene Jones, check out https://www.nytimes.com/2019/04/20/opinion/sunday/christian-easter-serene-jones.html Be well, Daniel |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 23 10:08AM -0700 Daniel, by posting guidance against the true teachings of Christ, you are heaping damnation upon your own soul. Before you step up and be a teacher of the things of God, you had better understand what it means to be a teacher for God. Those who rise up against Christ ... have an end that nobody wants, one that is completely undesirable in every possible way. See James 3:1, Luke 17:1-2. ----- On Tuesday, April 23, 2019 at 12:34:19 PM UTC-4, Daniel wrote: > > Both of you will learn soon enough the significance of the messages > > I post ... One type of message I post is far more important > "One's pride will bring him low ..." Proverbs 29:23 The messages I post that are more important are the ones about Christ and sin and salvation from sin through Christ. It's not pride, Daniel. Not by a long shot. > For an alternative take on Christianity from Serene Jones, check out... Paul already forewarned about such teachers: https://www.biblegateway.com/passage/?search=2+Timothy+4%3A1-4&version=KJV 1 I charge thee therefore before God, and the Lord Jesus Christ, who shall judge the quick and the dead at his appearing and his kingdom; 2 Preach the word; be instant in season, out of season; reprove, rebuke, exhort with all long suffering and doctrine. ==> 3 For the time will come when they will not endure sound doctrine; but after their own lusts shall they heap to themselves teachers, having itching ears; ==> 4 And they shall turn away their ears from the truth, and shall be turned unto fables. For an alternative take to today's modern watered down messages on "Christianity," refer to the recorded sermons from the preachers and pastors and teachers from the 1700s, 1800s, and early 1900s. Here's a man who was on fire for God and teaches people rightly: https://twitter.com/DavidRWilkerson Here are some others: https://twitter.com/WhitefieldG https://twitter.com/Puritans_SDG https://twitter.com/FlavelJohn You'll find messages closer to what have been taught since Christ, compared to today's "Christ is only love" teaching. Jesus will forgive all of our sin, but judgment has also been placed in His hands. This time of grace will not run forever. It is upon the world now because this is the "Age of the Gentiles" where Jesus reaches out to the sinners of the world drawing them to Himself. But this age will end soon, and what comes after will be the precursor of the great tribulation. Nobody will want to be here for that. It's described in the Bible as being the worst time on the planet for man. Worse than wars. Plagues. Freezing cold. Burning heat. Nothing else compares to what's coming. Today is the day to ask Jesus to forgive your sin and save your eternal soul and be set free from the judgment awaiting the whole sinful world in the Great Tribulation. -- Rick C. Hodgin |
Mr Flibble <flibble@i42.removethisbit.co.uk>: Apr 23 06:10PM +0100 On 23/04/2019 18:08, Rick C. Hodgin wrote: > Today is the day to ask Jesus to forgive your sin and save your > eternal soul and be set free from the judgment awaiting the whole > sinful world in the Great Tribulation. And Satan invented fossils, yes? /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>: Apr 23 10:22AM -0700 On Tuesday, April 23, 2019 at 1:10:16 PM UTC-4, Mr Flibble wrote: > And Satan invented fossils, yes? He did invent your understanding of them. There is always hope because of Christ, but in some people they are so unwilling to hear the truth they keep themselves from it, making themselves a lost cause. lost cause, noun a person or thing that can no longer hope to succeed or be changed for the better. Truly breaks my heart to see such self-destruction. A waste beyond words to lose a soul to pride. -- Rick C. Hodgin |
Mr Flibble <flibble@i42.removethisbit.co.uk>: Apr 23 06:25PM +0100 On 23/04/2019 18:22, Rick C. Hodgin wrote: > changed for the better. > Truly breaks my heart to see such self-destruction. A waste beyond > words to lose a soul to pride. And Satan invented fossils, yes? /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." |
"Öö Tiib" <ootiib@hot.ee>: Apr 23 11:25AM -0700 On Tuesday, 23 April 2019 20:25:57 UTC+3, Mr Flibble wrote: > And Satan invented fossils, yes? You are good person, Leigh. He needed your attention and answered within 10 minutes how "lost cause" it felt to be without your "And Satan invented fossils, yes?". |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 23 12:51PM -0700 On Tuesday, April 23, 2019 at 2:25:55 PM UTC-4, Öö Tiib wrote: > You are good person, Leigh. He needed your attention > and answered within 10 minutes how "lost cause" it > felt to be without your "And Satan invented fossils, yes?". I believe you know this, but to be sure: The lost cause reference is to the fact that he covers his ears and will not hear the truth. He's Hell-bent on believing whatever he wants to believe without regard to any facts or evidence which come his way. I've honestly never met anyone like him, except for five year olds who cover their ears and repeat "blah blah blah" very loud to be defiant and avoid the adult who's speaking to them. ----- BTW, one day you will know how sincere I am in reaching out to all of you. You'll either become a Christian and have that infusion of God's love within your own being and know, or you'll be standing at your judgment before God and He will personally show you how I have prayed for you, and cared about you, and sought with much ef- fort to teach you the truth that your eternal soul might be saved. On in this world is mocking men and women like me allowed. You are able to proceed with whatever behavior toward me you feel is appropriate. You have that freedom here. But there is coming a day when this world will end for each of us, and we will stand before God no longer under our own freedom and control, but are then compelled to respond to the system He has in place that does have rigid laws and methods. In that system, your authority and sarcastic doltish nature will not be tolerated, and will be even then revealed for what it is and has been also here: total de- struction of your own soul. I teach you the truth so you can be set free while you still have a chance for salvation. I advise not mocking me, but rather listening to me. I am not doing this so I can get rich. I am doing this because I want you to have a future after you leave this world. I want you to prosper in the love and protection of God forever. -- Rick C. Hodgin |
Mr Flibble <flibble@i42.removethisbit.co.uk>: Apr 23 09:31PM +0100 On 23/04/2019 20:51, Rick C. Hodgin wrote: > doing this because I want you to have a future after you leave > this world. I want you to prosper in the love and protection of > God forever. And Satan invented fossils, yes? /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." |
Ian Collins <ian-news@hotmail.com>: Apr 24 08:42AM +1200 On 24/04/2019 07:51, Rick C. Hodgin wrote: > is to the fact that he covers his ears and will not hear the truth. > He's Hell-bent on believing whatever he wants to believe without > regard to any facts or evidence which come his way. Have you ever stopped to think that you are describing yourself here? You are a symptom of the the plague of irrationality and bigotry sweeping the world. You blindly cling to your beliefs, preferring the words of cranks and pseudo-science to established science. You glibly reject any evidence that contradicts your beliefs as the works of Satan. It is irrationality and blind acceptance such as yours that breads the kind of extremism leads to events like the abomination that recently afflicted my city. Fortunately we are an open minded society who came together to reject ignorance and embrace all of our brother and sisters. -- Ian. |
Bonita Montero <Bonita.Montero@gmail.com>: Apr 23 08:38PM +0200 > Sure there are such classes. Fair amount of optimizations can be > done by using std::array or mundane array plus std::string_view. string_view isn't mutable. |
Bonita Montero <Bonita.Montero@gmail.com>: Apr 23 08:39PM +0200 > Use a region allocator? Here is an older one I created: An std::allocator<T> replacement has to have a usual heap-behaviour. |
Thiago Adams <thiago.adams@gmail.com>: Apr 23 11:47AM -0700 On Tuesday, April 23, 2019 at 3:40:00 PM UTC-3, Bonita Montero wrote: > > Use a region allocator? Here is an older one I created: > An std::allocator<T> replacement has to have a usual heap-behaviour. What is your view about using C and making everything tailored for your needs? I never wrote a C++ compatible allocator for instance, but this doesn't matter if you are using C you can write an much simpler allocator. |
Bonita Montero <Bonita.Montero@gmail.com>: Apr 23 08:56PM +0200 > What is your view about using C and making everything > tailored for your needs? ... less convenient than what I suggest here. |
Mr Flibble <flibble@i42.removethisbit.co.uk>: Apr 23 06:07PM +0100 On 22/04/2019 02:49, Rick C. Hodgin wrote: > I believe or have ever taught. > If you want to know the truth ... learn it: > https://groups.google.com/d/msg/comp.lang.c/YLNsjdKKFR4/VapszCkrCwAJ And Satan invented fossils, yes? /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@gmail.com: Apr 23 10:15AM -0700 On Tuesday, April 23, 2019 at 1:08:14 PM UTC-4, Mr Flibble wrote: > And Satan invented fossils, yes? He did invent your belief regarding them. If you want to know the truth study DNA. The absolutely beyond- imagination-complexity found in the information systems and the various constructions found in DNA operations ... will blow your mind. To believe something that complex could just evolve is to believe outright fantasy. The enemy of this world, of your soul, wants you to believe his lies, and not the truth. You are following his cues today, and it will be to your own soul's destruction. Such a waste. -- Rick C. Hodgin |
Mr Flibble <flibble@i42.removethisbit.co.uk>: Apr 23 06:21PM +0100 > The enemy of this world, of your soul, wants you to believe his > lies, and not the truth. You are following his cues today, and > it will be to your own soul's destruction. Such a waste. And Satan invented fossils, yes? /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." |
"Öö Tiib" <ootiib@hot.ee>: Apr 23 09:47AM -0700 > some version of the halting problem and blows up. A compiler is just a > program after all and a very complex one to boot so hidden bugs are almost > a certainty. It is. My experience of experimentations with complex compile-time processing is that clang and gcc do crash ultra rarely. Might be very good specialists there. When these run into some limits of compile-time class generations, loops and recursions then these tell that clearly and even suggest what switches to set. Linkers are sometimes nasty in style of "collect2.exe: error: ld returned 5 exit status" and that is it basically ... may be whatever but typically about some ODR violation. > : > }; > Caused a fairly comprehensive compiler internal error dump. Most weird thing IMHO is IAR compiler: expensive, anything above C 89 may results with something weird, the IDE is more rotten than Code Blocks, lot of ways to make every piece of it to crash, hang or even to blue-screen whole Windows. People are careful like de-miners using it. Like workbench from hell ... how can anyone trust to make software with such a thing? |
"Heinz Müller" <Heinz.Mueller69@gmail.com>: Apr 23 06:53AM +0200 > That is an unnamed template argument, ... Are there other purposes of this kind of template-argument? |
Manfred <noname@add.invalid>: Apr 23 02:50PM +0200 On 4/23/2019 6:53 AM, Heinz Müller wrote: >> That is an unnamed template argument, ... > Are there other purposes of this kind of template-argument? This is similar to unnamed function arguments: "Typically, unnamed arguments arise from the simplification of code or from planning ahead for extensions. In both cases, leaving the argument in place, although unused, ensures that callers are not affected by the change." This is in Bjarne's book (TC++PL) about function arguments, but the explanation can be transposed to template arguments too. |
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