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


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

Re: What does the "L" mean

From T <T@invalid.invalid>
Newsgroups comp.lang.c++
Subject Re: What does the "L" mean
Date 2019-12-04 00:56 -0800
Organization A noiseless patient Spider
Message-ID <qs7sc6$rf7$1@dont-email.me> (permalink)
References <qs7npd$5jn$1@dont-email.me> <qs7o3e$5mt$1@news.albasani.net> <qs7pcd$d9p$1@dont-email.me> <qs7rei$n8m$1@dont-email.me>

Show all headers | View raw


On 2019-12-04 00:40, Paavo Helde wrote:
> On 4.12.2019 10:05, T wrote:
>> On 2019-12-03 23:43, Bonita Montero wrote:
>>> Am 04.12.2019 um 08:38 schrieb T:
>>>> Hi All
>>>> MB_ICONEXCLAMATION
>>>> 0x00000030L
>>>> What does the "L" at the end mean?
>>>
>>> It means that the integral literal is a long.
>>
>> 64 bit integer?
> 
> Depends on the platform/implementation. In this case the constant is 
> from Windows headers, and in Windows/MSVC a long is 32-bit even in 
> 64-bit Windows.
> 
> This is basically so because long happened to be 32-bit in 16-bit DOS 35 
> years ago, and MS used it a lot instead of 16-bit int (which was indeed 
> unusable for many purposes). As a result, now they cannot change 'long' 
> to 64-bit because they have abused it so much.
> 

Great explanation.  Thank you!

In Perl6 , we have:

int8 	(int8_t in C)
int16 	(int16_t in C)
int32 	(int32_t in C)
int64 	(int64_t in C)

$ p6 'my int64 $x=0xF; say $x;'
15

$ p6 'my int64 $x=0xFFFFFFFFFFFFFFF; say $x;'
1152921504606846975

$ p6 'my int64 $x=0xFFFFFFFFFFFFFFFF; say $x;'
Cannot unbox 64 bit wide bigint into native integer
   in block <unit> at -e line 1

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


Thread

What does the "L" mean T <T@invalid.invalid> - 2019-12-03 23:38 -0800
  Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 08:43 +0100
    Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:05 -0800
      Re: What does the "L" mean Geoff <geoff@invalid.invalid> - 2019-12-04 00:32 -0800
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:33 -0800
        Re: What does the "L" mean Paavo Helde <myfirstname@osa.pri.ee> - 2019-12-04 11:11 +0200
          Re: What does the "L" mean Geoff <geoff@invalid.invalid> - 2019-12-04 01:14 -0800
      Re: What does the "L" mean "Fred. Zwarts" <F.Zwarts@KVI.nl> - 2019-12-04 09:39 +0100
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:51 -0800
      Re: What does the "L" mean Paavo Helde <myfirstname@osa.pri.ee> - 2019-12-04 10:40 +0200
        Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:56 -0800
          Re: What does the "L" mean Bo Persson <bo@bo-persson.se> - 2019-12-04 10:08 +0100
            Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 01:20 -0800
              Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-04 21:46 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-05 01:33 +0000
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-05 15:15 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-05 15:31 +0000
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-06 10:59 +0000
                Re: What does the "L" mean Ben Bacarisse <ben.usenet@bsb.me.uk> - 2019-12-07 03:55 +0000
                Re: What does the "L" mean James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-12-06 23:38 -0500
                Re: What does the "L" mean Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-12-06 22:36 -0800
                Re: What does the "L" mean Vir Campestris <vir.campestris@invalid.invalid> - 2019-12-08 21:33 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 20:44 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 20:52 +0000
                Re: What does the "L" mean Tim Rentsch <tr.17687@z991.linuxsc.com> - 2019-12-06 22:20 -0800
        Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 16:20 +0000
          Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-06 16:30 +0000
            Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-06 17:50 +0000
              Re: What does the "L" mean scott@slp53.sl.home (Scott Lurndal) - 2019-12-06 18:18 +0000
              Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-07 11:57 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-07 12:04 +0000
                Re: What does the "L" mean boltar@nowhere.co.uk - 2019-12-07 13:05 +0000
                Re: What does the "L" mean Bart <bc@freeuk.com> - 2019-12-07 13:16 +0000
                Re: What does the "L" mean Öö Tiib <ootiib@hot.ee> - 2019-12-07 05:49 -0800
          Re: What does the "L" mean scott@slp53.sl.home (Scott Lurndal) - 2019-12-06 16:36 +0000
      Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 13:47 +0100
        Re: What does the "L" mean Thiago Adams <thiago.adams@gmail.com> - 2019-12-04 04:57 -0800
        Re: What does the "L" mean "Fred. Zwarts" <F.Zwarts@KVI.nl> - 2019-12-04 14:41 +0100
          Re: What does the "L" mean Bonita Montero <Bonita.Montero@gmail.com> - 2019-12-04 15:06 +0100
        Re: What does the "L" mean James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-12-04 08:55 -0500
    Re: What does the "L" mean T <T@invalid.invalid> - 2019-12-04 00:34 -0800
  Re: What does the "L" mean Keith Thompson <kst-u@mib.org> - 2019-12-04 08:28 -0800
    Re: What does the "L" mean Robert Wessel <robertwessel2@yahoo.com> - 2019-12-05 09:32 -0600
      Re: What does the "L" mean Keith Thompson <kst-u@mib.org> - 2019-12-05 10:03 -0800

csiph-web