News for hackers. Stuff that matters.
Re:Fuchsia is not Linux by jmaygarden on Thursday April 12, 2018 @09:02AM (#16820433)
Use of static in the context of that C snippet is deprecated in C++. One is supposed to use an unnamed namespace instead.

    namespace {
        int myfunc() {
            return 5;
        }
    
        int x;
        int y = 4;
        int z = myfunc();
     };

     int main()
     {}
In my opinion, his point is still valid.
Re:Fuchsia is not Linux by j4_james on Thursday April 12, 2018 @06:20PM (#16825452)
Just FYI, I believe that deprecated usage was later undeprecated. See https://stackoverflow.com/questions/4726570/deprecation-of-t...