Take this basic function:
func sampleFunction () { print( self ) }
Here, self refers to an instance of a class that converts it, and not how it may make more sense - a function that converts it.
How to get a link to an envelope function, not a shell class instance?
Ideally, I want to do something like this:
func sampleFunction ( value: Int ) { print( selfAsEnvelopingSampleFunction, value ) }
source share