β [SOLVED] Does the 3rd line of code hold memory as a reference or does it hold the actual value?
ayooo, quick question. pretty simple. Book is a custom class just so you know....
just holds the memory of the location in terms of reference for the value or object
holds the actual value of course
holds what??? the memory of the value location or is it considered to hold the actual value as well?
7 Replies
value types are copied, so
anotherFalseValue
holds a value, not a referenceanotherFalseValue
will hold a copy of the data
While Bool anotherBookHere = bookLocation;
would hold a reference to the same bookthanks for clearing that up :D! all i needed to know. @alex @ZZZZZZZZZZZZZZZZZZZZZZZZZ
i believe u can close by doing /close
$close
Use the /close command to mark a forum thread as answered
tyty