Re: Avoiding Booleans & Danny Thorpe
- From: "John Herbster" <herb-sci1_AT_sbcglobal.net>
- Date: Sun, 30 Oct 2005 09:17:00 -0600
"Andre Kaufmann" <andre.kaufmann.bei@xxxxxxxxxxx> wrote
> CreateFile(cmCreateNew);
> is much more readable than
> CreateFile(true);
> With the latter one I don't have any clue what's the parameter for.
Which is why I try to code
CreateFile( {CreateNew}true );
where comment CreateNew will give the reader a hint as
to what the parameter is for.
--JohnH
.
- Follow-Ups:
- Re: Avoiding Booleans & Danny Thorpe
- From: Andre Kaufmann
- Re: Avoiding Booleans & Danny Thorpe
- References:
- Avoiding Booleans & Danny Thorpe
- From: Kyle A. Miller
- Avoiding Booleans & Danny Thorpe
- Prev by Date: Re: Game inventory Screen Needed
- Next by Date: Re: Avoiding Booleans & Danny Thorpe
- Previous by thread: Re: Avoiding Booleans & Danny Thorpe
- Next by thread: Re: Avoiding Booleans & Danny Thorpe
- Index(es):
Relevant Pages
|