You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, bnut (JIRA User). We could make this a library feature if the language rules for expanding __FILE__ as default values applied at depth, so that func foo(sourceLoc: SourceLocation = SourceLocation()) would instantiate SourceLocation()'s own defaulted arguments from the caller's source location.
Wouldn't that result in the binary containing ALL information (file, line, column and function) even if I am only interested in a single item (e.g. just the line number)? I don't think that such a behavior would be desired.
If that problem can be avoided then I'd like to also request two additional elements:
module: the containing Swift module's name
type: if you just have the function name you can't tell whether it's a global function, a specific type's function and which type's function. A single Swift file can contain multiple types. `type` could be the demangled name of the function's containing type. nil or empty if it's a global function.
Additional Detail from JIRA
md5: d7dc4b9f9982a5639872d1a119a2cac7
Issue Description:
A single SOURCE_LOC struct could do the job nicely.
cite: http://twitter.com/jckarter/status/675418743221043201
The text was updated successfully, but these errors were encountered: