@jckarter The LSP spec has modifiers (including defaultLibrary - https://t.co/1euMesQLug) which you could use to do things like this, but you'd need a theme to go with it
TIL of the following valid ("deprecated") Objective-C:
@interface MyObject : NSObject
- readValue:(int)value, id object;
@end@implementation MyObject
- readValue:(int)value, id object {
return [self readValue:value, object] ?: self;
}
@end
C-style parameters is deprecated but still works although it currently confuses Xcode and crashes clangd. More importantly it leads Clang to be confused when a user accidentally puts a "," in a normal method declaration:
@interface MyObject
- (void)a:(id)a, b:(id)b;
@end
@ashfurrow@steipete@stroughtonsmith This is potentially unsafe e.g. if you check https://t.co/BHI79XxPIh, call a method which mutates https://t.co/BHI79XxPIh, and then access it
@steipete What are you using va_list for? IIUC va_list is only for variadic arguments (not objc_msgSend which needs to cast to the proper type), does that work on arm?