On Monday, 2 February 2015 at 08:52:29 UTC, Vladimir Panteleev wrote:
On Monday, 2 February 2015 at 08:46:40 UTC, Daniel Kozak wrote:
And this is reason why rdmd suck (in my case).
Example:

return cast(EntityManagerFactory)Object.factory("cz.dlang.ddpa.EntityManagerFactoryImpl");

Object.factory is a misfeature. It causes ALL classes and their virtual methods and everything that they refer, and so on, to be built into the resulting binary, regardless if they're used or not, and regardless if you use Object.factory or not.

// this does not work with rdmd but works ok with dub

Fix: static import cz.dlang.ddpa;

Not ideal solution, but probbably doable. ATM I have xml file with cz.dlang.ddpa.EntityManagerFactoryImpl so maybe I can make it .d file

Reply via email to