Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #71133

Re: I'd like to have unusing

Subject Re: I'd like to have unusing
Newsgroups comp.lang.c++
References (12 earlier) <0b98c7dd-04e4-40dd-bbc9-c14309c5d62d@googlegroups.com> <CeqNF.7215$yD2.4375@fx35.iad> <9183b66c-a6aa-47e2-98fa-8fb45a39b4c2@googlegroups.com> <BHzPF.163269$4G2.38803@fx46.iad> <a1ec84da-2301-45f7-83ba-12d303981aaf@googlegroups.com>
From Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo>
Message-ID <ASdQF.129412$QU2.36982@fx01.iad> (permalink)
Date 2020-01-04 23:46 -0500

Show all headers | View raw


Öö Tiib wrote:
> On Friday, 3 January 2020 06:47:40 UTC+2, Pavel  wrote:
>> Öö Tiib wrote:
>>> On Friday, 27 December 2019 18:24:12 UTC+2, Richard Damon  wrote:
>>>> On 12/26/19 6:20 AM, Öö Tiib wrote:
>>>>> On Thursday, 26 December 2019 13:01:25 UTC+2, Öö Tiib  wrote:
>>>>>> On Thursday, 26 December 2019 02:55:04 UTC+2, Pavel  wrote:
>>>>>>> Alf P. Steinbach wrote:
>>>>>>>> On 25.12.2019 23:28, Pavel wrote:
>>>>>>>>
>>>>>>>>> B. If an identifier starting with _ not followed by an uppercase letter
>>>>>>>>> is used by C++ implementation, it should be used as a name in the global
>>>>>>>>> namespace.
>>>>>>>>
>>>>>>>> ... or namespace `std`.
>>>>>>> *that* is what does not seem to follow from anything.
>>>>>>
>>>>>> There standard has chosen to other way of reserving, the menace
>>>>>> of undefined behavior when user touches namespace std in wrong
>>>>>> way:
>>>>>> "The behavior of a C++ program is undefined if it adds declarations
>>>>>> or definitions to namespace std or to a namespace within namespace
>>>>>> std unless otherwise specified. A program may add a template
>>>>>> specialization for any standard library template to namespace std
>>>>>> only if the declaration depends on a user-defined type and the
>>>>>> specialization meets the standard library requirements for the original
>>>>>> template and is not explicitly prohibited."
>>>>>
>>>>> Note that by your interpretation, Pavel, standard is violating itself:
>>>>> <https://en.cppreference.com/w/cpp/utility/functional/placeholders>
>>>>>
>>>>
>>>> Those names are reserved for the Standard to use. 
>>>
>>> Nope. *All* *and* *every* name, including but not limited to plain and
>>> pure profanities with and without underlines anywhere, in namespace std 
>>> or in namespaces within namespace std are reserved for the Implementation
>>> to define or to declare by quoted above Word Of Standard. ;)
>>>
>>>> There is absolutely 
>>>> nothing in the Standard that prohibit it from taking a particular name 
>>>> in that set and defining it for use by the user.
>>>
>>> Sure, I totally disagree with interpretation of Paul. In fact the
>>> placeholders I cited were as example of contradiction of his
>>> claim B that those names may be only used by Implementation and
>>> only in global namespace.
>> Sorry, I did not mean to be impolite, just bailed out earlier than saw your
>> follow-ups. Happy New Year, BTW.
> 
> Happy new year to you too. And happy name change from Paul to Pavel.
> I had odd dream today that someone had changed my name. So I woke up
> and looked into group and noticed that my name was same but yours had
> changed.
My name has always been Pavel. I can see you answered to me (at least my
news reader shows "Pavel") but called me Paul (I have no problem going
for Paul though because it is the proper translation of Pavel to English
so no worry).
> 
>> Placeholders in std:: like _1 etc do seem to break (3.2) I cited. Should be a
>> defect in the Standard (surely not first and probably not last).
> 
> If you think it is defect then post defect report to isocpp groups.
> Language lawyers there will attempt to shred you into threads or
> deal with that ambiguity in some other manner but on any case it
> will be interesting experience.
> <https://lists.isocpp.org/mailman/listinfo.cgi/std-discussion>
>
Maybe later. This does not seem of practical importance. I might ask my
colleague who is active on the committee but he probably won't be
interested either (but we will see).
>> As for my opinion that "those names may be only used by Implementation and
>> only in global namespace" I deduce it from "and shall not be used otherwise".
>> Said strongly enough for me to refrain from using these ever (but I did not
>> anyway since the late 80s because compatibility with C mattered for my
>> purposes back then).
> 
> What I posted was interpretation how most people had interpreted it.
> I myself simply dislike somewhat names with underscores and so I
> do not use these anyway. Only place where I use underscore is
> that I tend to mark private data members with trailing underscore
> to make access of those to stand out.
Same here.
>  
> 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-12 12:49 +0100
  Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 13:51 +0100
    Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-12 05:47 -0800
      Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 17:58 +0100
        Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-12 09:40 -0800
          Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-13 09:23 +0100
      Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-12 17:58 +0100
    Re: I'd like to have unusing boltar@nowhere.co.uk - 2019-12-12 16:23 +0000
    Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 13:19 -0500
      Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-25 20:09 +0100
        Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 16:37 -0500
          Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-25 22:56 +0100
            Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 17:06 -0500
              Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-25 14:14 -0800
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 17:28 -0500
                Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-26 00:49 +0100
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 19:54 -0500
                Re: I'd like to have unusing "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2019-12-26 03:53 +0100
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2019-12-25 22:32 -0500
                Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-26 03:01 -0800
                Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-26 03:20 -0800
                Re: I'd like to have unusing Richard Damon <Richard@Damon-Family.org> - 2019-12-27 11:24 -0500
                Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2019-12-27 09:22 -0800
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-02 23:47 -0500
                Re: I'd like to have unusing Öö Tiib <ootiib@hot.ee> - 2020-01-02 23:46 -0800
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-04 23:46 -0500
                Re: I'd like to have unusing Richard Damon <Richard@Damon-Family.org> - 2020-01-04 18:43 -0500
                Re: I'd like to have unusing Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2020-01-04 23:55 -0500
  Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 18:29 +0000
    Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 18:34 +0000
      Re: I'd like to have unusing Daniel <danielaparker@gmail.com> - 2019-12-12 11:17 -0800
    Re: I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-12 19:40 +0100
      Re: I'd like to have unusing Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk> - 2019-12-12 19:56 +0000
        Re: I'd like to have unusing Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-13 06:35 +0100

csiph-web