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


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

Re: sizeof()

From Juha Nieminen <nospam@thanks.invalid>
Newsgroups comp.lang.c++
Subject Re: sizeof()
Date 2022-12-19 18:13 +0000
Organization Aioe.org NNTP Server
Message-ID <tnq9jf$daq$1@gioia.aioe.org> (permalink)
References <fef9de52-9919-4d1d-9b5f-aa67f6c40c03n@googlegroups.com>

Show all headers | View raw


gdo...@gmail.com <gdotone@gmail.com> wrote:
> should be consider a function not an operator?

It's no more a function than eg. 'return' is. It doesn't even
require parentheses (at least for expressions).

In C++11 it could theoretically be a function, but not prior to that,
nor in C, because it needs to be evaluated at compile time.

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


Thread

sizeof() "gdo...@gmail.com" <gdotone@gmail.com> - 2022-12-19 09:12 -0800
  Re: sizeof() Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2022-12-19 10:02 -0800
  Re: sizeof() Juha Nieminen <nospam@thanks.invalid> - 2022-12-19 18:13 +0000
  Re: sizeof() Tony Oliver <guinness.tony@gmail.com> - 2022-12-19 16:35 -0800
  Re: sizeof() Öö Tiib <ootiib@hot.ee> - 2022-12-20 01:36 -0800

csiph-web