making package privates visible with alias

Bill Baxter dnewsgroup at billbaxter.com
Sun Oct 29 21:18:30 PST 2006


I'm using the helix.linalgebra library.
It uses constructs like:

private template Stuff(T) {
    int blarf(T) { ... }
}
alias .Stuff!(float).blarf blarf;
alias .Stuff!(double).blarf blarf;


I guess their code worked at one point in the history of D, but now (DMD 
0.172) attempts to use the 'blarf' functions result in the error
     "function linalgebra.blarf is not accessible from <mycode>."

Is there some other way to expose certain bits of private stuff?  Or is 
this just a bug that's supposed to work?

--bb



More information about the Digitalmars-d mailing list