✅ Writing a scuffed way to use an "assignment" (=) operator
Obviously, there's no such thing as an assignment operator. I'd like to find some way around that.
I have a class that looks something like this:
I'd like to be able to assign values to this:
Is there any hacky, bodged, whatever way of doing this? I can't do it like this, obviously, because operators are static:
Any ideas are appreciated, thanks!
I have a class that looks something like this:
I'd like to be able to assign values to this:
Is there any hacky, bodged, whatever way of doing this? I can't do it like this, obviously, because operators are static:
Any ideas are appreciated, thanks!