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
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…
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:
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…