ios - Why does Xcode 6 keep autocompleting true as TRUE from the Dynamic Link Editor library? -
i'm still learning swift , ios development i've been running issue , despite attempts dig weeds bit i'm still little confused.
when start typing true
xcode 6 suggests autocompletion true
. not end of world. however, 1 time decided see happen if used true
, result gave me error:
'dyld_bool' not convertible 'bool'
ok, true not bool... looked @ file dyld_bool defined (it's struct, way) , found next code:
struct dyld_bool { init(_ value: uint32) var value: uint32 } var false: dyld_bool { } var true: dyld_bool { }
now i'm thoroughly confused; don't understand code doing. can please shed lite on going on here? dyld_bool , when utilize it?
thanks in advance.
1) you're doing nil wrong, experience same issue autocompletion : when seek type 'true', xcode tries autocomplete 'true' instead of 'true'.
i filed bug, study number '18945902'
sometimes need solve typing 'true' somewhere else, , copy/pasting text. stupid xcode bug.
2) 'dyld' stuff 'dynamic loader' library, defines it's own 'bool' type, values 'true' , 'false'. done code compatibility reasons code coming other platforms or libraries.
you can forget it, , utilize 'true' , 'false' booleans, should fixed in next xcode release it's annoying bug.
if want know more dyld, here's doc of dyld :-)
https://developer.apple.com/library/mac/documentation/darwin/reference/manpages/man1/dyld.1.html
ios xcode swift
No comments:
Post a Comment