On Thu, 01 Oct 2009 13:53:46 -0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Jarrett Billingsley wrote:
On Thu, Oct 1, 2009 at 12:25 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
[code injection]
What do you think?
I think it sounds interesting enough, but
Andrei Alexandrescu wrote:
Christopher Wright wrote:
Andrei Alexandrescu wrote:
I am becoming increasingly aware that we need to provide some means
to define certain members (data and functions) for each class as if
they were pasted there.
Most of the examples given would be well served by
I am becoming increasingly aware that we need to provide some means to
define certain members (data and functions) for each class as if they
were pasted there.
Right now that right is reserved to the compiler, which generates e.g.
one static classinfo object for each class. But users would
On Thu, Oct 1, 2009 at 12:25 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I am becoming increasingly aware that we need to provide some means to
define certain members (data and functions) for each class as if they were
pasted there.
Right now that right is reserved to the
Jarrett Billingsley wrote:
On Thu, Oct 1, 2009 at 12:25 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
[code injection]
What do you think?
I think it sounds interesting enough, but I can't help but wonder if
this is a feature that you've really thought through (especially wrt.
Andrei Alexandrescu wrote:
Jarrett Billingsley wrote:
I think it sounds interesting enough, but I can't help but wonder if
this is a feature that you've really thought through (especially wrt.
how it interacts with mechanisms such as template mixins and normal
symbol inheritance), or if you
Andrei Alexandrescu, el 1 de octubre a las 11:25 me escribiste:
What do you think?
I think this is close to Python metaclasses[1], but much more specific.
It's amazing how many cool things one can do with Python metaclasses
(there are several articles discussing them[2]) and decorators. I
On Thu, 01 Oct 2009 20:25:03 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I am becoming increasingly aware that we need to provide some means to
define certain members (data and functions) for each class as if they
were pasted there.
Right now that right is reserved to
Denis Koroskin wrote:
On Thu, 01 Oct 2009 20:25:03 +0400, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
[...]
What do you think?
Andrei
This is cool. I'd also add Serialization task to the application list
(currently I manually insert mixin Serializable!(); into every class.
On Thu, 01 Oct 2009 12:53:46 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
interface Comparator(T)
{
int opCmp(Comparator!T rhs);
mixin(Impl) // for each implementation Impl
{
int opCmp(Impl rhs);
override int opCmp(Comparator!T rhs)
Phil Deets wrote:
On Thu, 01 Oct 2009 12:53:46 -0500, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
interface Comparator(T)
{
int opCmp(Comparator!T rhs);
mixin(Impl) // for each implementation Impl
{
int opCmp(Impl rhs);
override int
Andrei Alexandrescu wrote:
I am becoming increasingly aware that we need to provide some means to
define certain members (data and functions) for each class as if they
were pasted there.
Most of the examples given would be well served by decent builtin
reflection. Walter thinks reflection is
Christopher Wright wrote:
Andrei Alexandrescu wrote:
I am becoming increasingly aware that we need to provide some means to
define certain members (data and functions) for each class as if they
were pasted there.
Most of the examples given would be well served by decent builtin
reflection.
On 2009-10-01 14:05:10 -0400, Max Samukha spam...@d-coding.com said:
For example, the upcoming reflection mechanism in QtD (which uses its
own metaobjects instead of the limited classinfo) requires manual
insertion of a mixin into derived classes unless the mixin is inserted
implicitly when a
14 matches
Mail list logo