@vaporeon_ @aescling oh you might be right actually.
@vaporeon_ @aescling yes. in C everything is passed by value between functions, so technically the pointer is copied from main to changeObj
but pointers are just numbers so the literal address in memory that pointer refers to doesn't change
@vaporeon_ @aescling there's no optimization in using a reference over a pointer, it's a style thing
@vaporeon_ @aescling they do function as aliases to an existing object but they still pass by value when given to functions, so they can be used in any situation where a pointer can be used because C++ likes giving you multiple ways to solve every problem
@aescling @vaporeon_ did you know C++ has both pointers and references :D
@monorail @vaporeon_ @aescling hi ms. glaceon you are so cool
@vaporeon_ @aescling yessir
@vaporeon_ @aescling it will create an object with a single property named _this that has the value of whatever this was where the arrow function was declared
and then it will delete that property from the object
@aescling @vaporeon_ this is a joke
@aescling @vaporeon_ this will NOT do what it's being promised to do, this is a joke
const deleteThis = () => {
const temp = { _this: this };
delete temp._this;
};
@vaporeon_ no got mad at this everyone just rolled with it lmao
@vaporeon_ it was a joke lmao
@vaporeon_ npm install memory-management
@vaporeon_ I love JavaScript, so delete this please
@vaporeon_ depends! https://corru.observer/ was written entirely in JavaScript and it is cool as shit
anyway if you want to see how they made this terrible idea actually work then watch https://www.youtube.com/watch?v=p4upNgl1I2o
@vaporeon_ I love JavaScript, so delete this please
The PS4 doesn't allow just-in-time compilation so you don't get the performance a modern javascript engine normally guarantees so on what planet is this a good idea
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him