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


Groups > pl.comp.programming > #32358

Re: Stroustrup o C++

From AK <nobody@nowhere.net>
Newsgroups pl.comp.programming
Subject Re: Stroustrup o C++
Date 2019-01-14 17:42 +0100
Organization Aioe.org NNTP Server
Message-ID <q1ie6b$cg$1@gioia.aioe.org> (permalink)
References (5 earlier) <ab584a3e-a9a1-47e0-99d6-d60834fee098@googlegroups.com> <q1fpaf$4a8$1@gioia.aioe.org> <e7e02125-c966-4ed5-a78d-dc52b8fbb349@googlegroups.com> <q1hjfj$1ug$1@gioia.aioe.org> <d5056e8e-2c4e-42ec-b397-a1343d589cda@googlegroups.com>

Show all headers | View raw


On 2019-01-14 16:33, Wojciech Muła wrote:
> On Monday, January 14, 2019 at 10:07:01 AM UTC+1, AK wrote:
>> On 2019-01-14 09:37, Wojciech Muła wrote:
>>> On Sunday, January 13, 2019 at 5:34:26 PM UTC+1, AK wrote:
>>>> Przy deklaracji tablic wymagane jest const_expr (ktore jest
>>>> podsetem expr) i wszytsko gra.
>>>> _Nic_ nie stoi na przeszkodzie, aby dla sizeof tez bylo
>>>> subexpr (nie dopuszczajace operatorow pre-in-fixowych).
>>>
>>> Nie rozumiem w czym te operatory przeszkadzają.
>>
>> No bez jaj. Przeszkadzaja, gdyz tak wlasciwie nie dzialaja
>> w sizeof, a jedynie wprowadzaja w blad/konfuzje (8 zamiast 9)
>> developerow.
> 
> "... developerów, którzy nie rozumieją jak działa sizeof/decltype/etc."

Bo trudno zrozumiec idiotyzm tego sizeofowego wyjatku.

> Jeśli ktoś nie rozumie, że sizeof bierze **typ wyrażenia**
> bez liczenia go, to trudno mieć pretensje do języka.

Mozna, zwlaszcza ze (jak pokazalem) mozna go _bardzo latwo_ uniknac
przez gramatyke.
Bo ++ (-- itp) w sizeof nie maja _najmniejszego sensu_.
Dlatego powinny byc zwyczajnie zabronione.

> O ile> w C to jeszcze Twoja propozycja miałaby sens, to w C++ jest
> nie do zaakceptowania, bo można przeciążać operatory. Wyrażenie
> "x++" może mieć inny typ niż samo "x".

Tak?. No cos podobnego!?
Bo mi sie zawsze wydawalo, ze taki ++ to posiada obligatoryjne
sygnatury:
Klasa& Klasa::operator++(); // dla ++x
Klasa  Klasa::operator++(); // dla x++

AK

Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Stroustrup o C++ godek.maciek@gmail.com - 2019-01-12 02:46 -0800
  Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-12 17:52 +0100
    Re: Stroustrup o C++ szykcech@gmail.com - 2019-01-12 10:37 -0800
      Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-12 11:48 -0800
        Re: Stroustrup o C++ A S <asta@evbox.pl> - 2019-01-13 06:13 +0100
        Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-13 12:01 +0100
          Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-13 04:19 -0800
            Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-13 17:34 +0100
              Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-13 17:36 +0100
              Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-14 00:37 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 10:06 +0100
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 10:48 +0100
                Re: Stroustrup o C++ godek.maciek@gmail.com - 2019-01-14 01:49 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 11:04 +0100
                Re: Stroustrup o C++ godek.maciek@gmail.com - 2019-01-14 02:41 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 13:22 +0100
                Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-18 13:05 +0000
                Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-14 07:33 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 17:42 +0100
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-14 17:48 +0100
                Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-14 10:53 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-15 15:02 +0100
                Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-15 13:56 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-16 00:36 +0100
                Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-18 16:08 -0800
                Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-19 02:18 +0100
        Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-13 12:10 +0100
      Re: Stroustrup o C++ AK <nobody@nowhere.net> - 2019-01-13 12:13 +0100
      Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-18 12:50 +0000
    Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-18 15:45 +0000
      Re: Stroustrup o C++ Wojciech Muła <wojtek.mula@gmail.com> - 2019-01-18 15:59 -0800
        Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-19 11:03 +0000
          Re: Stroustrup o C++ Sebastian Biały <heby@poczta.onet.pl> - 2019-01-19 21:18 +0100
            Re: Stroustrup o C++ fir <profesor.fir@gmail.com> - 2019-01-20 04:04 -0800
              Re: [OT] Stroustrup o C++ Sebastian Biały <heby@poczta.onet.pl> - 2019-01-20 17:05 +0100
                Re: [OT] Stroustrup o C++ fir <profesor.fir@gmail.com> - 2019-01-20 10:25 -0800
                Re: [OT] Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-20 20:56 +0000
                Re: [OT] Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-20 20:54 +0000
                Re: [OT] Stroustrup o C++ fir <profesor.fir@gmail.com> - 2019-01-20 13:40 -0800
            Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-20 20:49 +0000
              Re: Stroustrup o C++ Sebastian Biały <heby@poczta.onet.pl> - 2019-01-20 22:55 +0100
                Re: Stroustrup o C++ queequeg@trust.no1 (Queequeg) - 2019-01-21 10:42 +0000
  Re: Stroustrup o C++ Borneq <borneq@antyspam.hidden.pl> - 2019-01-14 16:38 +0100

csiph-web