News for hackers. Stuff that matters.
Re:Swift 2.2 Released by raverbashing on Tuesday March 22, 2016 @05:27AM (#11335316)
Yes, but I guess that code would break in a million ways today in a modern C++ compiler

It certainly worked at the time, for that specific compiler

Re:Swift 2.2 Released by pjmlp on Tuesday March 22, 2016 @08:34AM (#11336002)
It was still a language feature even if it wasn't available 100% bug free in all C++ compilers.

C code also used to break left and right long after C90 was approved.

I had to use K&R C style code in 1999 because the HP-UX compiler at a customer location didn't knew any better, but that didn't mean other C features weren't available elsewhere.

Re:Swift 2.2 Released by raverbashing on Tuesday March 22, 2016 @08:37AM (#11336014)
> I had to use K&R C style code in 1999 because the HP-UX compiler at a customer location didn't knew any better, but that didn't mean other C features weren't available elsewhere.

Curious, what did you need to do specifically? Parameter declarations weren't inlined?

But anyway, C, being smaller, breaks in fewer ways

Re:Swift 2.2 Released by pjmlp on Tuesday March 22, 2016 @11:04AM (#11337104)
> Curious, what did you need to do specifically? Parameter declarations weren't inlined?

In those days HP-UX C compiler was still transitioning between K&R and ANSI standards.

We could only properly compile without strange errors while using K&R function declarations.

If memory serves me right, it was the first HP-UX release having support for 64bit file systems.