From eef35e84d953025698bc46ec73774ab4de5c0647 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jun 2012 21:27:57 -0700 Subject: [PATCH] Add some syntax todo items from Clang documentation. --- todo.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/todo.txt b/todo.txt index 1bc7eb2..dd16598 100644 --- a/todo.txt +++ b/todo.txt @@ -65,3 +65,17 @@ should WebUndefined be @undefined? if something is a function, it should be output differently evaluate usages of CYTry in ObjectiveC/Library for CYObjectiveTry verify name targets of "incorrect number of arguments to" +maybe support __objc_{yes,no} intrinisic primitives + +support new objective-c subscript notation: + id key = ...; + id value = object[key]; + -> id value = [object objectForKeyedSubscript:key]; + object[key] = newValue; + -> [object setObject:newValue forKeyedSubscript:key]; +and: + NSUInteger idx = ...; + id value = object[idx]; + -> id value = [object objectAtIndexedSubscript:idx]; + object[idx] = newValue; + -> [object setObject:newValue atIndexedSubscript:idx]; -- 2.49.0