Archive for January, 2022

Template Mixins in D Programming Language

Written by on January 23, 2022 in D Language, Programming with 0 Comments
Template Mixins in D Programming Language

When I heard the name Mixin for the first time in the context of Dlang, I imagined it would be something similar to the mixins of Common Lisp, but I was completely wrong!  Mixins are a very interesting feature of D language. They allow code to be “injected” into the source at “compile-time” and hence facilitate “meta […]

Continue Reading

Universal Function Call Syntax (UFCS) in D Language

Written by on January 9, 2022 in D Language, Programming with 0 Comments
Universal Function Call Syntax (UFCS) in D Language

One of the many “cool’ features of Dlang is “Universal Funcion Call Syntax”, which permits non-member functions to be invoked using the member function call syntax. When you add to this the fact that this applies not just to user-defined types but to primitive types as well, things get interesting.  Let us look at some […]

Continue Reading

Top