News for hackers. Stuff that matters.
Re:On leading underscores and names reserved by the C and C+... by SAI_Peregrinus on Wednesday January 11, 2023 @11:10AM (#34339998)
The C is of course a pirate's favorite language. It might end up with "water" and "land" types in the standard some day. So `bool iswater()` and `bool island()` functions might be needed! You might need to check if the island structure you got is really land, so `island(&possible_island)` would obviously help and not cause any confusion to readers of the code.
Re:On leading underscores and names reserved by the C and C+... by sokoloff on Wednesday January 11, 2023 @07:27PM (#34347268)
You might want to know if you have a small piece of land surrounded by water, so we need

  isisland(x);
Or to know if an element is a member of a particular terror group (or an Egyptian goddess):

  isisis(y);
Re:On leading underscores and names reserved by the C and C+... by cozzyd on Wednesday January 11, 2023 @11:42PM (#34349306)
And if you want to know if some territory is claimed by a particular terror group (or Egyptian goddess, or post-metal band) there is the venerable

  isisisland(z);
In this case you'd typically then construct a memory fence.
Re:On leading underscores and names reserved by the C and C+... by ketralnis on Wednesday January 11, 2023 @07:53PM (#34347546)
Aye, any pirate's first love be the C
Re:On leading underscores and names reserved by the C and C+... by cozzyd on Wednesday January 11, 2023 @11:39PM (#34349283)
You just have to pass the pirate flag to your compiler
Re:On leading underscores and names reserved by the C and C+... by 0xADD1E on Friday January 13, 2023 @05:47AM (#34366129)
I think you’ll find it’s actually called an arrgument
Re:On leading underscores and names reserved by the C and C+... by Gibbon1 on Friday January 13, 2023 @12:04AM (#34364156)
Of course depending on how locale is set will effect the results of island() and iswater()