Re: "Designated Initializer" pattern
Re: "Designated Initializer" pattern
- Subject: Re: "Designated Initializer" pattern
- From: Reed Hedges <email@hidden>
- Date: Tue, 16 Mar 2004 18:41:58 -0500
Um, "structured programming" ??
Maybe "wrapper functions" if you're being fancy?
Do I misunderstand what exactly you mean...
int foo(int x, int y, int z, bool flag) {
... ...
}
int bar(int x) {
return foo(x, 0, 0, 0, false);
}
int baz(int y) {
return foo(23, y, 42, true);
}
right?
Pretty basic stuff, probably no one has formalized it as a pattern...
On Tuesday, March 16, 2004, at 04:32 PM, Michael Rothwell wrote:
Is there a more generic name for code that follows the "Designated
Initializer" pattern? This pattern -- one "master" function that
simpler,
related functions call -- can be used for functions that are not
initializers. Is there a more generic name for the pattern than
"Designated Initializer?"
Something like "Designated Handler?"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.