Proposed improvements to the separate compilation model
Rob T
alanb at ucora.com
Mon Mar 4 16:31:53 PST 2013
On Tuesday, 5 March 2013 at 00:17:03 UTC, Andrej Mitrovic wrote:
> On 3/5/13, Rob T <alanb at ucora.com> wrote:
>> The relatively primitive IDE that I use allows me to at least
>> perform function folding, which in some ways helps solve the
>> problem, albeit in a poor way, but it hints that better tools
>> can
>> solve the problem rather nicely without a duplication of code.
>
> Code folding is available in almost every text editor, the
> problem
> (for me) is the indenting.
In that case it would be nice to avoid most of the class name
duplication, that's one of the things I really disliked about C++.
class C
{
void foo1();
void bar1()
{
// N1 -- two indents
}
}
// This avoids all but one duplication of the parent class name.
class.C.inner
{
void foo()
{
// 1 indent
}
void foo2()
{
// 1 indent
}
}
--rt
More information about the Digitalmars-d
mailing list