2 Questions: Do I need an interface & C++ -> D code part, how?
Benjamin Schulte
Aldoric at gmx.de
Sun May 20 08:56:46 PDT 2007
Okay, that's really a bad point for D in my oppinion.
It's really hard to convert the easiest things to D now without using a class for this case.
Like I had before:
Event[] events;
class Event
{
void addEvent( )
{
// Add to events and save index in array in 'thisIndex'
}
void remEvent( )
{
// Remove event from array by replacing 'thisIndex' with Event
// at the last position of the array
}
int thisIndex;
}
More information about the Digitalmars-d
mailing list