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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -