typos in set functions
From: Siemel Naran (SiemelNaran_at_REMOVE.att.net)
Date: 11/30/04
- Next message: Martin Magnusson: "Re: Template friend (unary and binary) operators"
- Previous message: Siemel Naran: "how to cause const promotion for template code"
- Next in thread: Serge Paccalin: "Re: typos in set functions"
- Reply: Serge Paccalin: "Re: typos in set functions"
- Reply: Micha: "Re: typos in set functions"
- Reply: Pete Becker: "Re: typos in set functions"
- Reply: Old Wolf: "Re: typos in set functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 10:34:04 GMT
Is there any trick to avoid typos in set functions, such as
void date::set(int day, int month, int year) {
d_day = day;
month = month; // oops: should be d_month = month
d_year = year;
}
- Next message: Martin Magnusson: "Re: Template friend (unary and binary) operators"
- Previous message: Siemel Naran: "how to cause const promotion for template code"
- Next in thread: Serge Paccalin: "Re: typos in set functions"
- Reply: Serge Paccalin: "Re: typos in set functions"
- Reply: Micha: "Re: typos in set functions"
- Reply: Pete Becker: "Re: typos in set functions"
- Reply: Old Wolf: "Re: typos in set functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|