0

Is there a way of writing the following in swift?

static void * const SomeContext = (void*)&SomeContext;

I understand that static is used in structs and enums for declaring type methods. Not sure what could substitute this.

p0lAris
  • 4,750
  • 8
  • 45
  • 80
  • Is the code provided in a class or a struct ? – Morniak Jul 23 '14 at 12:03
  • The code is provided outside of a class's interface/implementation. Mostly, I need to use it to add observers for different properties and I want to create a context in swift. – p0lAris Jul 23 '14 at 12:10

0 Answers0