4 ms·
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()`
by SAI_Peregrinus 4y ago
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.
- sokoloff 4y agoYou 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);
- cozzyd 4y agoAnd 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.
- ketralnis 4y agoAye, any pirate's first love be the C
- cozzyd 4y agoYou just have to pass the pirate flag to your compiler
- 0xADD1E 4y agoI think you’ll find it’s actually called an arrgument
- Gibbon1 4y agoOf course depending on how locale is set will effect the results of island() and iswater()