Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > pl.comp.programming > #32340
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | AK <nobody@nowhere.net> |
| Newsgroups | pl.comp.programming |
| Subject | Re: Stroustrup o C++ |
| Date | Sun, 13 Jan 2019 17:34:24 +0100 |
| Organization | Aioe.org NNTP Server |
| Lines | 32 |
| Message-ID | <q1fpaf$4a8$1@gioia.aioe.org> (permalink) |
| References | <e8cbcde1-f437-4d01-8a99-db1244efb0b9@googlegroups.com> <q1d5vs$pgs$1@gioia.aioe.org> <e2376b5d-7682-4cf1-83fb-07ae50ffa9fc@googlegroups.com> <c25ccdab-b42d-4748-a22d-5cf350524e55@googlegroups.com> <q1f5pu$1b58$1@gioia.aioe.org> <ab584a3e-a9a1-47e0-99d6-d60834fee098@googlegroups.com> |
| NNTP-Posting-Host | MV2AClG/2c9bVI3d/hJi2Q.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
| X-Notice | Filtered by postfilter v. 0.8.3 |
| Content-Language | en-GB |
| Xref | csiph.com pl.comp.programming:32340 |
Show key headers only | View raw
On 2019-01-13 13:19, Wojciech Muła wrote: > On Sunday, January 13, 2019 at 12:01:20 PM UTC+1, AK wrote: >> On 2019-01-12 20:48, Wojciech Muła wrote: >>> On Saturday, January 12, 2019 at 7:37:22 PM UTC+1, szyk...@gmail.com wrote: >>>> x == 9; y == 4; >>>> Co w tym tajemniczego?!? >>> >>> No właśnie nie, wyrażenie będące argumentem sizeof nie jest >>> wyliczane (nie jest w ogóle kompilowane). >> >> No wiec? >> Dlaczego parser C/C++ taki cus dopuszcza? > > Przecież gramatyka właśnie dopuszcza, żeby argumentem > operatora było **wyrażenie**. Bez tego nie byłbyś > w stanie w plain C odczytać rozmiaru pola struktury. E tam. 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). >> sizeof to zwykly operator (a nie funkca), wiec nie ma >> przeszkod aby (nawet w gramatyce) taka restrykce zawrzec > > Jak pokazałem, takie ograniczenie byłoby bez sensu. Nie. Jest jak najbardziej sensowne. Problemem sa zapewne (jak zwykle) zaszlosci. AK
Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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