Template mixins: Why is the decision to mixin made at the call site?

div0 div0 at users.sourceforge.net
Fri Aug 21 12:36:43 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ary Borenszweig wrote:
> div0 wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jarrett Billingsley wrote:
>>> On Fri, Aug 21, 2009 at 1:36 PM, div0<div0 at users.sourceforge.net> wrote:
>>>
>>> That's what he's suggesting, and it does make sense.  When you write a
>>> template, *either* it's meant to be used as a mixin, *or* it's meant
>>> to be used some other way.  Mixin in a template that wasn't meant to
>>> be a mixin or vice versa usually makes no sense.
>>
>> Hmmm.
>>
>> Not convinced by that argument, I can think of good reasons to use a
>> template as both.
> 
> Can you provide an example?

Yeah, but it's Friday night, I'm drinking beer now. :o
I'll do it tomorrow.

Bills response is the start of it though.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKjvdLT9LetA9XoXwRAh9QAJ9Sj/IY+xjEiJJ9QV3+fnJokyqVLQCfbARp
2IA3oDip/LxFDzhsx4cLDVw=
=oNLO
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list