How to do pointers in swift like I used to do in c++ -
so apple has had little documentation can find doing this. big feature miss c++ being able (sorry syntax errors little rusty in c++
int* chosenint; int option1 = 1 int option2 = 2 int option3 = 3 if (the sun up) chosenint = &option1 else chosenint = &option2
however swift doesnt recognize "*" or "&" operator. trying have global variable stores pointer skspritenode, , can change different one. swift seems have large unsafemutablepointer thing. how c++ code in swift skspritenodes?
all trying have global variable stores pointer skspritenode, , can change different one. swift seems have large unsafemutablepointer thing. how c++ code in swift skspritenodes?
skspritenode
class, i.e. reference type, don't need anything. behavior without asterisks , ampersands.
Comments
Post a Comment