%:include <stdio.h>
%:include <Cocoa/Cocoa.h>
int main()
<%
NSString *message = @"Hello, world";
printf("%s\n", <:message UTF8String:>);
return 0;
%>
It's section 6.4.6 in the C spec. Good stuff for playing jokes on coworkers, but please don't ship code like this.
2 comments:
You think digraphs are bad? You must not have seen trigraphs (§5.2.1.1)…
To wit…
Nice bug :)
I've seen trigraphs, but I don't think they're enabled by default. Digraphs appear to work with no extra flags.
Post a Comment