« first day (737 days earlier)      last day (4201 days later) » 

9:00 PM
Ah.
I would have
never ever guessed
 
@Cheersandhth.-Alf Well I meant the one default constructor of the POD.
 
....
I haven't eaten anything in 18 hours.
I need to stop doing this to myself. BACOOOON.
 
RACOOON
 
@LucDanton Conceptually, it has a ctor, but in reality, no, not really.
 
I somehow have a std::auto_ptr that seems to work on one line, and .... wait... I have stack corruption...
 
9:03 PM
right
it's time for a TV deleting marathon again
 
@JerryCoffin That's going to confuse everybody. Might as well avoid constructors altogether and talk in terms of initialization: default doesn't, value does. Constructors are an implementation detail.
 
now i can't even remember how it was that default initialization screwed up before andrew introduced value initialization in c++03. i remember it was about aggregates, like mixing std::string with ints and doubles.
something there
oh yes, the strings initialized but not the ints. maybe
 
Extrapolating from your reminiscing: struct aggregate { std::string s; int i; double d; }; aggregate a; // now what?
Or maybe aggregate a = aggregate(); is the problematic init.
 
more coffee i think, then i'll do other things
maybe i'll post the problematic question myself
with prepared answer, lol
 
g'night (or mornin, or day)
 
user142019
9:09 PM
Später.
 
@LuchianGrigore G'night.
 
user142019
I’m gonna work on my web app.
 
@WTP'-- Come on. Life isn't so bad that you have to do that!
 
user142019
I wanna make money.
 
Ell
@WTP'-- don't we all?
 
user142019
9:14 PM
Yup, and that’s why I’m gonna work on my web app.
 
Profiling code is fuuuun.
FUN FUN FUN.
 
entice your colleagues to bet on the results.
just an idea
 
user142019
I have no colleagues.
 
What casting operator should I use to convert a void * to a Something *... dynamic_cast, static_cast, reinterpret_cast?
 
@GeorgeEdison static_cast.
 
9:25 PM
Thanks.
 
user142019
Casting void*? satanic_cast
6
 
@GeorgeEdison why do you have a void*? Probably reinterpret_cast
 
@MooingDuck I'm passing pointers to my classes to a third-party C library that passes them back to me later.
 
@GeorgeEdison once you go void* you never go back
 
user142019
@MooingDuck Why reinterpret_cast? static_cast seems better to me.
 
9:25 PM
@WTP'-- I didn't catch that until the third read
@WTP'-- I think of static_cast as potentially doing a conversion (in the general sense, not with void* obviously). reinterpret_cast never does a conversion.
 
Well void* to T* is a conversion. Reverse of T* to void*.
 
sbi
@JerryCoffin Note that there was "fireworks" here long before I entered.
 
@LucDanton Reworded then: I want a bitwise copy of the pointer value. I don't want it to point to a different address of memory no matter what.
 
user142019
What if sizeof(void*) < sizeof(T*)?
 
@WTP'-- can't happen
 
user142019
9:28 PM
Oh.
 
@MooingDuck static_cast does that.
 
@WTP'-- How is that possible?
 
@LucDanton in this case, yes. Not in every case
@WTP'-- all pointers (exception member function pointers) are the same size.
 
Yeah, so use static_cast for void* to T* but not for those other cases.
 
Okay.
 
9:29 PM
This simple explanation is turning into an autobiography.
 
sbi
@MooingDuck ISTR discussions in the 90s in compl.lang.c++.moderated where it was claimed that a valid C++ implementation could do this. ICBWT.
 
user142019
@GeorgeEdison How do I know? C++ is full of weirdnesses.
 
@MooingDuck Strictly speaking though there is no requirement that equivalent values of type T* and void* are bitwise similar. By design.
 
It's okay... I used to always assume that sizeof(char) wasn't necessarily 1 until I found out otherwise.
 
@GeorgeEdison sizeof(char) is necessarily 1. Maybe you meant short and 2?
 
9:30 PM
@MooingDuck That's what I mean. It is always 1. I used to think that it could be 2 or even 4 on some weird platform.
 
@sbi Not all object bits have to participate in the value representation, I would think.
 
@GeorgeEdison oh, right. misread.
 
user142019
In Soviet GCC, sizeof(void) == sizeof(char).
4
 
@WTP'-- So Soviet GCC knows sizes of incomplete types? :)
 
@MooingDuck Not necessarily -- but pointer to void (or a pointer to char) is capable of holding any address without loss. A bit-wise copy doesn't necessarily work, but converting from T * to void * and back to T* gives the original address back for any T.
 
9:31 PM
Though my personal opinion is that a typename like uint8 or int32 would have been better than unsigned char and signed int.
 
user142019
@Praetorian sizeof(void) == 1 in GNU C and GNU C++ with their moronic language extensions which are turned on by default.
 
Seriously?
 
user142019
Just to make sure your code is unportable and you’ll stick with GCC.
 
user142019
GCC is a cancer.
 
@GeorgeEdison what about systems with 9 or 10 bit bytes?
 
9:33 PM
@MooingDuck Then uint8 will use 1.125 and 1.25 bytes respectively.
 
@GeorgeEdison They're not. Types like std::int32_t are available if you need them (std::uint8_t is iffy though).
Well, type synonyms. Unfortunately.
 
user142019
@GeorgeEdison std::uint8_t and std::uint32_t are in <cstdint>.
 
@GeorgeEdison ignoring that
 
@WTP'-- Hmm... I never knew that. Thanks for pointing that out.
 
user142019
On DCPU-16, CHAR_BIT == 16.
 
9:34 PM
@GeorgeEdison MSVC didn't have the header until recently IIRC
 
@GeorgeEdison sizeof returns a size_t, and size_t must be an integer type -- ergo, nothing can have a size of 1.125 or 1.25 bytes.
 
@JerryCoffin It's okay... it was only a joke :P
 
user142019
#define size_t float!
 
@EtiennedeMartel He's just tired from hitting all those mice
 
9:36 PM
@thecoshman that'd be tiring. In the time I watched him he hit like 10 of them.
 
user142019
I don’t use mice.
 
@WTP'-- I believe it has to be a typedef, so that would be typedef float size_t; (reminds me of a Scott Adams line about humor coming from two people who are equally defective in entirely different ways leading to humor -- but mostly seems to be failing here. I guess I'm just so defective nobody else can equal me).
 
user142019
lol I haven’t used a mouse in like, eight weeks.
 
@EtiennedeMartel Good game mouse, good game
 
user142019
@JerryCoffin at least using syntax then. :P
 
user142019
9:38 PM
Also, namespace std { typeundef size_t; }
 
On a system with 9-bit bytes, uint8_t doesn't exist.
 
I'm dying with anticipation of reading @Cicada's autobiography.
 
Ell
what does the t suffix mean?
I know w is wide
 
user142019
type
 
@Ell "type"
 
9:41 PM
@Ell I know of no w suffix
@Ell Did you see my pumpkin?
 
@MooingDuck wchar_t I think he means
 
user142019
PREFIX ≠ SUFFIX
 
@Cicada probably
 
@WTP'-- I know. Just psychic guessing.
 
user142019
@Cicada I was complaining to Elliot, not to you.
 
9:42 PM
oh wait, the Windows API has a W suffix
 
Also, Win32 Api has SomeFunctionA(...) and SomeFunctionW(...)
 
user142019
W ≠ w
 
lol fu
 
@Cicada She can always beat us by citing "Women's intuition".
 
@WTP'-- pft
 
user142019
9:43 PM
:D </trollmode>
 
@Cicada and SomeFunctionA(...)
 
user142019
typedef const unsigned int CUNT;
 
@MooingDuck Except, of course, when it doesn't -- like all the "Net*" functions are implicitly wide (i.e., take only wide character strings) but have neither a W suffix nor a A variant. But, consistency and Win32 are not exactly close friends.
 
@CatPlusPlus: poke meh in futures
 
who has joined the dropbox space race yet?
 
9:47 PM
@bamboon space race?
 
user142019
@bamboon I have.
 
@MooingDuck No use joining the space race: blog.burtonthird.com/?p=81
 
user142019
@bamboon My school has won.
 
user142019
I have 30 GB now. :P
 
9:50 PM
Won what?
 
Free space for 2 years, then you lose it.
 
user142019
25 GB of Dropbox space for all users who clicked a button.
 
user142019
I wonder what happens if after 2 years you have 25 GB of data saved in Dropbox and they reduce it back.
 
user142019
What files will be deleted?
 
@WTP'-- mine, too. are you from delft?
 
user142019
9:51 PM
@bamboon Hogeschool Rotterdam
 
@WTP'-- Oh, that? It took us about a day or so.
I thought there was some prize for being #1 or something.
 
user142019
That’d be unfair since not every school has the same number of students.
 
I don't even use 2GB.
 
user142019
I don’t even use 10MB.
 
user142019
I use it to share files once, then I delete them.
 
9:54 PM
I once used it to send a 50MB video to someone.
 
robot
check out my website again, especially the beginning tutorials
I think you will be much more satisfied with them
 
user142019
 
user142019
lol
 
Eh, @StackedCrooked just liked one of my rants on Facebook. I'm pretty sure he doesn't speak French.
 
9:56 PM
Isn't he Belgian?
I wouldn't be surprised if he could read French.
 
user142019
Belgians learn French in elementary school.
 
I'm just going to post this and leave, commence holly war "DVCS are generally agreed to be much simpler to use"
night :D
 
Who's Holly? Why would we war over her?
 
@WTP'-- Why would gay guys think that boobs are great?
 
@R.MartinhoFernandes He's Flemish.
 
user142019
9:58 PM
@DeadMG Do I know, I’m straight.
 
@DeadMG Because boobs are great. Duh.
 
lol#
I believe you have a recursive argument there
 
user142019
A valid recursive argument.
 
Does "to be good at being taught at" make sense at all.
 
9:59 PM
Ugh, can't sleep in a dorm..
 
I don't know to say it.
 
drop the "at"
 
Thanks.
 
"Fast learner"? Wait, you can be a fast learner on your own.
 
and you might end up with something vaguely approximating something good
 

« first day (737 days earlier)      last day (4201 days later) »