On Tuesday, 31 January 2012 at 12:33:22 UTC, bearophile wrote:
Mars:
Thanks everybody. I still hope support for partial classes may
come some day, to make this cleaner, but I guess it works.
Generally it's not wise to go too much against the style of a
language. What do you need pa
Mars:
> Thanks everybody. I still hope support for partial classes may
> come some day, to make this cleaner, but I guess it works.
Generally it's not wise to go too much against the style of a language. What do
you need partial classes for?
Bye,
bearophile
On Tuesday, January 31, 2012 11:37:24 Mars wrote:
> On Monday, 30 January 2012 at 10:21:07 UTC, bls wrote:
> > As already said template mixins are close to partial classes.
> > A snippet. HTH
>
> Thanks everybody. I still hope support for partial classes may
> come some d
On Monday, 30 January 2012 at 10:21:07 UTC, bls wrote:
As already said template mixins are close to partial classes.
A snippet. HTH
Thanks everybody. I still hope support for partial classes may
come some day, to make this cleaner, but I guess it works.
On 01/29/2012 01:43 PM, Mars wrote:
Hello everybody.
Quick question, is there anything like C#'s partial classes in D?
Mars
As already said template mixins are close to partial classes.
A snippet. HTH
import std.stdio, std.cstream;
void main(string[] args)
{
auto bar = ne
On Sunday, January 29, 2012 22:43:26 Mars wrote:
> Hello everybody.
> Quick question, is there anything like C#'s partial classes in D?
Not really, no. It's one file per module by design. However, you can use
template and string mixins to add code from other files.
- Jonathan M Davis
Mars:
> Hello everybody.
> Quick question, is there anything like C#'s partial classes in D?
In D there are ways to compose classes, using static methods of interfaces,
with "alias this", and even low-level ways like mixin(import("filename.d")),
and so on. But
Hello everybody.
Quick question, is there anything like C#'s partial classes in D?
Mars