digitalmars.D.announce - K&R style convention
- maelp (6/6) Jan 09 2008 Hello,
- Robert DaSilva (6/16) Jan 09 2008 That's not K&R style, this is
Hello,
sometimes it's useful to have some kind of K&R style declaration of parameters,
for instance it'd be nice to be able to write
drawRectangle( Drawable g, int: {x, y, w, h}, uchar: {r,g,b} )
do you think we can write some templates or have a similar behaviour in some
way ?
Jan 09 2008
maelp wrote:
Hello,
sometimes it's useful to have some kind of K&R style declaration of parameters,
for instance it'd be nice to be able to write
drawRectangle( Drawable g, int: {x, y, w, h}, uchar: {r,g,b} )
do you think we can write some templates or have a similar behaviour in some
way ?
That's not K&R style, this is
drawRectangle(g, x, y, w, h, r, g, b)
Drawable g;
int x, y, w, h;
uchar r, g, b;
Jan 09 2008








Robert DaSilva <sp.unit.262+digitalmars gmail.com>