• mina86@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    47
    ·
    26 days ago

    This is hardly newsworthy. If the extensions were called ‘Jabberwocky C Extennsions’ no one would have cared. The extension allows for tagged unnamed structs inside of a struct, e.g.:

    struct inner { /* ... */ };
    struct outer {
        int value;
        struct inner;
    };
    
      • mina86@lemmy.wtf
        link
        fedilink
        English
        arrow-up
        13
        ·
        26 days ago

        Tag is what goes after the struct keyword to allow referring to the struct type. Structs don’t have to have a tag. Name is what field are called. Adapting Obin’s example:

        struct foo { int baz; };
        struct bar { struct foo qux; };
        struct bar data;
        data.qux.baz = 0;
        

        foo and bar are tags for struct foo and struct bar types respectively; baz and qux are field names; and data is a variable name.

  • PragmaticOne@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    22 days ago

    This is a non story but people want to hate on MS so will grasp anything they can to try and make a thing out of it.