struct vs. class, int vs. char.
Daniel Keep
daniel.keep.lists at gmail.com
Tue Apr 28 19:09:49 PDT 2009
Denis Koroskin wrote:
> ...
Scope stack-allocating is an optimisation. It doesn't guarantee it
because that it's the point of scope.
Given that you're hung-up about stack allocation, I can't imagine how
you'd implement scope as a template. Hell, I can't imagine how you'd
implement Scope as a template for *any* of its behaviours.
class Foo
{
Scope!(Bar) _bar;
}
How do you guarantee deterministic destruction when it's inside a
non-deterministic construct?
-- Daniel
More information about the Digitalmars-d
mailing list