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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -