Better HN
topnewbestaskshowjobs
Log inSign up

kookookabongers

8 karma · joined Feb 2, 2017 (9y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

Thanks. Oddly not in the C++ standard:

http://stackoverflow.com/questions/18731707/why-does-c11-not...

comment 9y ago · link · parent

I don't use C for a couple of years and I see this:

void (handler[LASTEvent]) (XEvent ) = { [ButtonPress] = buttonpress, [ConfigureRequest] = configurerequest, [DestroyNotify] = destroynotify, [EnterNotify] = enternotify, [LeaveNotify] = leavenotify, [KeyPress] = keypress, [MappingNotify] = mappingnotify, [MapRequest] = maprequest, [PropertyNotify] = propertynotify, [UnmapNotify] = unmapnotify };

What's this feature called?