D mentioned and criticized

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Tue May 17 04:44:38 PDT 2016


On Tuesday, 17 May 2016 at 11:42:45 UTC, Ola Fosheim Grøstad 
wrote:
> On Tuesday, 17 May 2016 at 08:29:22 UTC, Chris wrote:
>> Ola first mentioned Loci in a recent thread. I'm always in 
>> favor of new PLs and / or ways of thinking. But I don't think 
>> it's good style to mention D in this way while not giving at 
>> least some reasons for doing so.
>
> I think he was more elaborate in an earlier version of the 
> website. IIRC he was  a D user, but gave up on the language due 
> to the design/development process that he felt was going 
> nowhere.
>
> I think the main feature in Loci compared to C++ is that you 
> can dynamically add interfaces to existing libraries from other 
> languages using structural typing. So you can add polymorphism 
> layers to existing C frameworks just by having pointers.
>
> http://loci-lang.org/StructuralTyping.html

Using fat pointers, one to the data and one to the interface:

http://loci-lang.org/DynamicDispatch.html



More information about the Digitalmars-d mailing list