On Sat, 04 Oct 2014 15:29:55 +0000
John Colvin via Digitalmars-d-learn <[email protected]>
wrote:

> I don't really see the point though.
> 
> class A
> {
>      void foo(int a) { Afoo(this, a); }
> }
> 
> then declare and define Afoo however you like.
it's noisy hackery and namespace pollution. sure i can do this and i'm
using this trick when it's better to define some methods for
class/struct in another module, but i don't like it.
inheritance/interfaces is not the best solution sometimes.

sure, i can `import()` any text file, but this is not good for separate
compilation (and this is why i want this feature in the first place).

to make a long story short: i don't like such hacks. ;-) but i'm not
yet familiar with compiler internals enough to write a patch.

Attachment: signature.asc
Description: PGP signature

Reply via email to