Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • This doesn't allow for not passing a key value into the function though? The issue is I am working with SDL, and I wanted to not pass a color parameter if you didn't supply one, but SDL doesn't allow for a nil value on color, thereby forcing you to select a color(it probably defaults to main\screen color, so I rewrote it to mimic a related object's color). So while this would work if I developed the SDL library, I didn't thereby I needed my function to be able to select the passing of a key(pre-rewrite). Eitherway, thanks for your answer! I learned something new! Commented Oct 22, 2019 at 13:20