]> gitweb.factorcode.org Git - factor.git/commit
cocoa.messages: Don't import if we don't know the type
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 29 Jan 2023 03:33:57 +0000 (21:33 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 29 Jan 2023 03:52:59 +0000 (21:52 -0600)
commit2542eeb794a767a34495c13905654348af8e35ca
tree8ac733f0bf5455c02ef3515dd74d77e9bf2f163b
parent8d224a8ec43c83ae4272ed1140054df8f14f6c22
cocoa.messages: Don't import if we don't know the type

cmi_simdInt2ValueForKey:defaultValue:found: supposedly returns type "4" which is not published

when bootstrapping, NSDictionary imports 193 methods. when reloading, it imports 460, some of which aren't googleable

just punt if we don't understand the types

! To see the bad type, do this:

"NSDictionary" objc-class
[ nip dup . [ method-name dup "cmi_simdInt2ValueForKey:defaultValue:found:" = [ B ] when . ] [ method-arg-types . ] [ method-return-type . ] tri nl ] each-method-in-class

Related to #2754
basis/cocoa/messages/messages.factor