code logs -> 2014 -> Sun, 21 Dec 2014< code.20141220.log - code.20141222.log >
--- Log opened Sun Dec 21 00:00:19 2014
00:06
<&ToxicFrog>
celmin|away: does it allow uint64_t(x)?
01:00 JustBob [justbob@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:00 JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code
01:00 mode/#code [+o JustBob] by ChanServ
01:30
<@celmin|away>
Yes, and even unsigned(x)
01:33 celmin|away is now known as celticminstrel3
01:33 celticminstrel3 is now known as celticminstrel
01:34 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
01:34 mode/#code [+o Alek] by ChanServ
01:46
< [R]>
How's that one specifically work?
01:46
<&Derakon>
I'd guess it's an unsigned int, since I can't see anything else really making sense as a default type.
01:46
<@celticminstrel>
Yeah.
01:46
< [R]>
Does it just cast to a fixed size or does it keep the size?
01:46
<&Derakon>
It does seem like an under-named function though.
01:47
<@celticminstrel>
No, it's the same as (unsigned int)x
01:47
<@celticminstrel>
If you omit the size, an integer is implicitly int size.
01:47
< [R]>
Is it actually a function? What header has the prototype? Or is it just alternate syntax for the type casting system?
01:47
<@celticminstrel>
So, "signed", "signed int", and "int" are all the same type; similarly, "unsigned" and "unsigned int" are the same type.
01:48
<@celticminstrel>
It's not a function.
01:48
<@celticminstrel>
It's an alternate syntax for casting in mimicry of constructor notation.
01:48
< [R]>
So it works with UDTs then, like uint64_t
01:48
<@celticminstrel>
It works with anything except multi-token types.
01:49
<@celticminstrel>
If you made a typedef of unsigned int, it would work with that.
01:49
< [R]>
That's what a User Defined Type is yeah.
01:49
<@celticminstrel>
It works with classes, in which case it's a constructor call.
01:50
<@celticminstrel>
It works with enums too.
01:50 * [R] forgets if unions can have member functions and constructors too.
01:51
<@celticminstrel>
I don't remember either, but personally, I think the best use of unions is an anonymous union nested in another structure.
01:51
< [R]>
(C++ class's and struct's are the same thing apparently, just different default permission levels)
01:52
<@celticminstrel>
Yes.
01:52 thalass [thalass@Nightstar-9ai58o.bigpond.net.au] has joined #code
01:52 mode/#code [+o thalass] by ChanServ
02:01
< [R]>
g++ seems to treat unions the same.
02:23
<@celticminstrel>
Hm?
02:43
< [R]>
-*- [R] forgets if unions can have member functions and constructors too.
02:44
<@celticminstrel>
Oh.
03:46 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
05:16 celticminstrel [celticminst@Nightstar-jeiu0g.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:24 Derakon is now known as Derakon[AFK]
05:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
05:53 mode/#code [+qo Vornicus Vornicus] by ChanServ
06:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
06:57 Kindamoody[zZz] is now known as Kindamoody
07:10 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has joined #code
09:08 AverageJoe [evil1@Nightstar-2ofrtr.ph.cox.net] has quit [[NS] Quit: Leaving]
10:54 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
10:54 mode/#code [+o Checkmate] by ChanServ
11:43 Kindamoody is now known as Kindamoody|afk
15:58 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:58 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:12 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds]
18:00 Kindamoody|afk is now known as Kindamoody
18:02 iospace is now known as io\PACKERS
19:20
<&McMartin>
http://i.imgur.com/pTYT70h.png
19:23 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
19:23 mode/#code [+o Alek] by ChanServ
20:41 * McMartin replaces some floating point code with binary coded decimal.
20:46 Derakon[AFK] is now known as Derakon
20:53 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
21:21 Kindamoody is now known as Kindamoody[zZz]
21:32
<@gnolam>
o_O
21:51 celticminstrel [celticminst@Nightstar-jeiu0g.dsl.bell.ca] has joined #code
21:51 mode/#code [+o celticminstrel] by ChanServ
23:29 io\PACKERS is now known as iospace
--- Log closed Mon Dec 22 00:00:35 2014
code logs -> 2014 -> Sun, 21 Dec 2014< code.20141220.log - code.20141222.log >

[ Latest log file ]