This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 50a5692
committed
[[ ObjcFFI ]] Add dynamic instance method binding
Previously it was not possible to bind to certain instance methods,
eg those defined in a protocol. This patch allows the `class` field
of the binding string to be empty, in which case the method is
resolved just as a selector, able to be called on an class instance.1 parent ad8a9e2 commit 50a5692
File tree
3 files changed
+67
-5
lines changed- docs/lcb/notes
- libscript/src
- tests/lcb/vm
3 files changed
+67
-5
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
| 986 | + | |
986 | 987 | | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
991 | | - | |
992 | | - | |
| 992 | + | |
993 | 993 | | |
994 | | - | |
995 | | - | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
996 | 1008 | | |
997 | 1009 | | |
998 | 1010 | | |
| |||
1007 | 1019 | | |
1008 | 1020 | | |
1009 | 1021 | | |
1010 | | - | |
| 1022 | + | |
1011 | 1023 | | |
1012 | 1024 | | |
1013 | 1025 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
203 | 237 | | |
0 commit comments