News for hackers. Stuff that matters.
Re:C0, an Imperative Programming Language for Novice Compute... by instruction-ptr on Wednesday October 18, 2017 @11:42AM (#15500068)
Also - we don’t break complete compatibility with C. We just restrict the amount of C things they are allowed to use
Re:C0, an Imperative Programming Language for Novice Compute... by jcoffland on Wednesday October 18, 2017 @11:55AM (#15500209)
Is every C0 program a valid C program?
Re:C0, an Imperative Programming Language for Novice Compute... by sigjuice on Wednesday October 18, 2017 @12:20PM (#15500432)
Doesn't look like it.

Page 18 says C0 is almost but not quite a subset of C. Though we strived to stay as close to C as possible, the array semantics proved impossible to resolve. However, it is still quite easy to convert a C0 program to C such that the meaning of the C0 program is one of the possible meanings of its C version.

Re:C0, an Imperative Programming Language for Novice Compute... by grayhatter on Wednesday October 18, 2017 @12:24PM (#15500468)
> the array semantics proved impossible to resolve.

...that's quitter talk.

Re:C0, an Imperative Programming Language for Novice Compute... by tyingq on Wednesday October 18, 2017 @03:16PM (#15502067)
That seems impossible given that they introduce new types, like string. Maybe there's a src/src translator or set of macros though?
Re:C0, an Imperative Programming Language for Novice Compute... by dymk on Wednesday October 18, 2017 @12:16PM (#15500403)
That’s what he’s implying by “restricted C”