Re: function shadowed

2015-04-09 Thread ddos via Digitalmars-d-learn
On Thursday, 9 April 2015 at 05:34:09 UTC, anonymous wrote: On Wednesday, 8 April 2015 at 22:53:39 UTC, ddos wrote: why not just make it callable without the alias? It's to prevent hijacking: http://dlang.org/hijack.html thx for the article!

function shadowed

2015-04-08 Thread ddos via Digitalmars-d-learn
i got two modules opengvg.d and vg.d vg.d contains calls to external c functions openvg.d should wrap and simplify some of those calls in openvg.d i make public import of submodule vg.d such that if openvg.d is imported the functions in vg.d can be called, this works as intended. but as soon

Re: function shadowed

2015-04-08 Thread anonymous via Digitalmars-d-learn
On Wednesday, 8 April 2015 at 12:05:00 UTC, ddos wrote: vg.d: module vg; extern (C) void vgSetParameterfv(VGHandle object, VGint paramType, VGint count, VGfloat *values); openvg.d module openvg; public import vg; void vgSetParameterfv(VGHandle object, VGint paramType, const(VGfloat[])

Re: function shadowed

2015-04-08 Thread anonymous via Digitalmars-d-learn
On Wednesday, 8 April 2015 at 22:53:39 UTC, ddos wrote: why not just make it callable without the alias? It's to prevent hijacking: http://dlang.org/hijack.html

Re: function shadowed

2015-04-08 Thread bearophile via Digitalmars-d-learn
ddos: same behavior when overriding methods of base classes This is by design. Bye, bearophile

Re: function shadowed

2015-04-08 Thread ddos via Digitalmars-d-learn
On Wednesday, 8 April 2015 at 17:48:36 UTC, anonymous wrote: On Wednesday, 8 April 2015 at 12:05:00 UTC, ddos wrote: vg.d: module vg; extern (C) void vgSetParameterfv(VGHandle object, VGint paramType, VGint count, VGfloat *values); openvg.d module openvg; public import vg; void