Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C to JavaScript

Name: Anonymous 2011-03-16 17:09

I know a good few hardcore C peeps lurk around here, is this possible?

 (*p)++

Name: Anonymous 2011-03-16 17:29

>>1
If you mean converting C to Javascript then yes, for standards-compliant C programs.

Just fake pointers with a pair (array, index). Pointer arithmetics outside the allocation unit are undefined by the standard.

Plus you would have to go for some lengths to provide proper modulo arithmetics. Also, I'm to lazy to look it up, but it is possible that setjmp/longjmp are in the standard, so you'd have to find a way to emulate them somehow.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List