• Re: Public Service Announcement: Please use /GF with Visual Studio when

    From makendo@3:633/10 to All on Tue Oct 27 13:17:18 2026
    Subject: Re: Public Service Announcement: Please use /GF with Visual Studio when you want to collapse constant strings!

    When you want to use == to compare strings such as "a", with "b" because
    all your strings are constants, please remember to add /GF to your
    CL.EXE command line.ÿ I have no idea how to do this in the IDE, but I'm
    sure you'll figure it out if you really have to.

    I thought it is common sense that == would compare addresses for
    strings, and everyone compares string equality using strcmp(...) == 0, strncmp(...) == 0 and memcmp(...) == 0? (and of course with
    #include <string.h>)

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)