Do everything in Java…

Tobias Pankrath via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 10 04:24:55 PST 2014


On Wednesday, 10 December 2014 at 10:24:53 UTC, Paulo  Pinto 
wrote:
> On Wednesday, 10 December 2014 at 08:43:49 UTC, Kagamin wrote:
>> On Tuesday, 9 December 2014 at 20:55:51 UTC, Dicebot wrote:
>>> Because you don't really create a template that way but 
>>> workaround broken function behavior. It is not the usage of 
>>> empty templates that is bad but the fact that plain functions 
>>> remain broken => not really a solution.
>>
>> You can compile against phobos sources instead of interface 
>> files.
>
> This cannot be the solution if D aspires to be used in contexts 
> where binary libraries are used.
>
> C++ is excused to have template code in headers given the 
> primitive tooling, but languages like Ada and Modula-3 support 
> proper information hiding for generic code.
>
> --
> Paulo

A binary blob requirement makes no sense for a standard library.

Would you like to explain how the proper information hiding 
support works for generic code in Ada? I'm really curious how 
that could work in D.



More information about the Digitalmars-d mailing list