News for hackers. Stuff that matters.
Re:Unsupervised translation of programming languages by Animats on Wednesday June 10, 2020 @01:47AM (#23474340)
Right. So the translation was idiomatic but wrong.
Re:Unsupervised translation of programming languages by hoseja on Wednesday June 10, 2020 @08:15AM (#23476232)
I'd say the C++ was wrong/unclear. If you want all the ints in your array to be a certain number, use std::fill. If you want all their bits to be 1, use something like ~0 in the memset.