swift - UnsafeMutablePointer.null() does not work? (Is unavailable?) -


in swift, null, used unsafemutablepointer.null() did not work. xcode says unavailable , should use nil literal instead gives me error message. have fix?

thanks.

i stumbled upon post while trying answer question myself, , found worked me

let nullptr = unsafemutablepointer<int>(nil) // nil null pointer 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -