Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: Text editor project in C Date: Mon, 26 Apr 2021 22:04:02 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <877dkohi65.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="26db97268589d0ee1907bfb3558c05e7"; logging-data="7453"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+Uq2pYhmXp11Xw9imCld6KkZ1ylKTJPo=" Cancel-Lock: sha1:kT6yVTpRG7Jbz2RV+qYXNe7rgqY= sha1:IC/MTh/pg6sWuQvwKF9yyNZUSqA= X-BSB-Auth: 1.f832ba75dfba87611040.20210426220402BST.877dkohi65.fsf@bsb.me.uk Xref: csiph.com comp.lang.c++:79306 comp.lang.c:160376 jacobnavia writes: > 2) #define u8 "abc" > const char *s = u8"def"; // Previously "abcdef", now "def" C has the same breaking change, but, just as with C++, you can usually ask the compiler to use an older standard. > Only in C you can still use the code of 50 years ago. There was no C code 50 years ago. This is a bit of a quibble since there was C code we'd just about recognise in about 1973 or 4, but some of it would fool even gcc today. The biggest change was the great = to = switch. This silently changed the meaning of a lot of code. -- Ben.