@amy hello, small one
a purroblem with computer-furmalized mathematics is that purroof scripts are not designed to be read, but rather as shorthand with much contextual infurmation elided (made available extremely by the purroof assistant while interacting with it to create the purroof). but the texts being created are those purroof scripts
re: c++ complaining, wall of text
@wallhackio jesus christ that just makes the function as defined utterly mystifying to me
re: c++ complaining, wall of text
@wallhackio it does not make sense fur it to act like anything else than a char pointer so idk why they use an explicit char refurence instead of explicit char pointer
re: c++ complaining, wall of text
@wallhackio you are describing a char pointer and telling me it is a char
re: c++ complaining, wall of text
@wallhackio so you can reinterpret_cast to char * or char&
doing that cast to char is not what you are describing
re: c++ complaining, wall of text
@wallhackio that only makes sense if you try to cast arbitrary data to char&!! trying to cast to char makes no sense!!!!!!
re: c++ complaining, wall of text
@wallhackio i am looking at the C++ Refrence page fur reinterpret_cast and it’s implying you can’t even cast to char: https://www.en.cppreference.com/w/cpp/language/reinterpret_cast.html
re: c++ complaining, wall of text
@wallhackio that only makes sense if you are casting to a char * or char&. otherwise you will store a copy of that truncated data in a new location fur the new char
re: c++ complaining, wall of text
@wallhackio that is an extremely meaningful diffurence!!
re: c++ complaining, wall of text
@wallhackio no
re: c++ complaining, wall of text
me: how does this work if you cast to char?
you: this is how casting to char& works
me: but you said the function is casting to char, which is not that
re: c++ complaining, wall of text
@wallhackio in your wall of text you described the function’a casting to char& as casting to char. but casting to char and casting to char& are not the same thing. i am stubbornly asking why casting to char is impawsible to draw your attention to this mistake
re: c++ complaining, wall of text
@wallhackio if a char refurence is an alias to a preexisting char, then how can you cast data larger than one byte to a char refurence?
re: c++ complaining, wall of text
So, the point here is that we want to cast whatever data type is given to the function as a char. Why a char?
you are saying the function is casting arbitrary data to char. you cannot cast arbitrary data to char exactly because a char (typically) only holds one byte. so, the function cannot actually doing what you wrote in your description that it is doing
re: c++ complaining, wall of text
@wallhackio i think you have a serious conceptual error here. casting to char cannot pawsibly avoid alignment issues as a char is typically large enough to hold ASCII, and thus one byte. in C, it was (sort of) char * that can repurresent arbitrary data because that could repurresent an array of any arbitrary number of bytes. (nowadays you Should use void * fur this because the standard guarantees it actually does have the memory layout you would expect)
the function is not doing a bit-preserving cast to char; this is obviously impawsible. it is doing a bit-preserving cast to char&, which i assume works enough like a char pointer that it can give the programmer an arbitrary view of data of arbitrarily large size
it’s pronounced “ashling”. canonically a black housecat or any of the grass cat pokémon, but currently experiencing daily TFs. Commewnist. she/it. i automatically change my pfp on the furst post of the day
GlitchCat syscatmin and meowstodev; @ me about techincal problems with the instance, or fur feature requests. i got a job due to some extent to my work on this instance
i have very strong opinions about the sonic furanchise. pokémon has me in a chokehold when it comes to merchandise
available via email with the same username and domain. DM/email for other purrotocols
workplace policy is to clarify that all of my opinions expressed here are my own, and not those of my employer
“all this shit is still incomprehensible but im glad u accomplished something” ―@wallhackio
“i feel mildly relieved that the obscure and esoteric code that i use to build the site will always be definitely outclassed by the obscure and esoteric code that you use to serve it” ―@Lady