Poodinis is a dependency injection framework for the D
programming language. It is heavily inspired by the Spring
Framework.
New in this release is constructor injection. Whenever the
dependency container resolves a class it creates an instance of
that class. During creation it attempts to
On 2016-09-03 18:02, Martin Nowak wrote:
Why not just use `__traits(getAttributes, var.tupleof[0])`?
I've already updated my code to use the above. When I first implemented
it, it was not possible to use a "tupleof expression" as argument to
__traits(getAttributes).
--
/Jacob Carlborg
On Saturday, 3 September 2016 at 14:40:37 UTC, Martin Nowak wrote:
Yes, it does help. As private prevents usage outside of a
module it allows to do some optimizations that required whole
program analysis otherwise, e.g. variables and functions can
get internal linkage, thus reducing
On Wednesday, 31 August 2016 at 06:20:46 UTC, Jacob Carlborg
wrote:
Class/struct fields are accessible using .tupleof. I was using
__traits(getAttributes) in my serialization library to get
UDA's for these fields, including private ones.
Which is a weird implementation, b/c there is no direct
On Wednesday, 31 August 2016 at 09:56:17 UTC, Johan Engelen wrote:
(I can only think of complicated stuff that requires pretty
much whole-program analysis to prove validity, and in that case
adding `private` doesn't help any more)
Yes, it does help. As private prevents usage outside of a
http://forum.dlang.org/post/nqem7g$1hm6$1...@digitalmars.com
signature.asc
Description: OpenPGP digital signature
On Friday, 2 September 2016 at 14:55:26 UTC, jmh530 wrote:
Anyway, with @safe unions, my thinking is that it would mean
that the garbage collector can be made precise in @safe code in
a way that it can't in @system code (assuming unions with
pointers aren't snuck in through @trusted).
GC