Questions tagged [template-mixins]

19 questions
1
vote
1 answer

C++ Mixins - Is this the correct way of implementing?

Hi all I have created a mixin class (super contrived) for printing out elements T (of some type T) which have a method called name(). I am wondering if this is considered the correct way to implement in C++? Any comments are welcome. template
Blair Davidson
  • 901
  • 12
  • 35
0
votes
0 answers

Inter-module symbol resolution error of template type-parameter when using mixins

At https://github.com/nordlow/phobos-next/blob/03b4736fdd65ef84c6fc583eddee4196629cea81/src/variant_arrays.d I've implemented a lightweight-polymorphic array container I call VariantArrays(Types...) indexed by a corresponding polymorphic index I…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
0
votes
1 answer

How to pass multiple-paragraph content to a Jade mixin as an argument

For example, say I have a mixin to create blog posts: mixin blogPost(title, content) article h1= title p= content Used like so: +blogPost("Post Title","Post Content") Results in:

Post Title

Post…

Dirk Diggler
  • 863
  • 1
  • 10
  • 22
0
votes
0 answers

Dojo/Dijit writing own widget, mixin issues

Just a minor problem, but it drives me nuts. I want to write my own widget using TabContainers. Now it seems, that the mixin-Classes can't call the TabContainer modules and start them. I tried a lots of stuff with different widgets, and it seems…
Giehl Man
  • 410
  • 5
  • 13
1
2