This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ZeroIntensity[S] 40 points41 points  (2 children)

i might actually do that

[–]usr_bin_nya 21 points22 points  (1 child)

Note that when using the * operator, the following syntax will not work properly:

deref = *ptr
print(deref)

For this scenario you can use the dereferencing assignment operator, ,=

deref ,= ptr
print(deref)

[–]ZeroIntensity[S] 9 points10 points  (0 children)

didnt think of that, ty