Brandon
2014-01-20 17:49:07
How does Simba export classes? Like actual pascal classes, not records?
I tried simulating it like this:
This works just fine. In lape I do:
and it works. Actually didn't expect it to work but it works.. I just don't want to export "Lape records".. I want to know how to export pascal classes.
Now how does Simba actually do this? I want to know because mine doesn't work in PS (only lape because of Lape's record->function syntax) yet somehow Simba is able to export TMufasaBitmap to PS and all that fancy stuff..
Any ideas?
I tried simulating it like this:
string Exports[] = {
"Print", "Procedure D.Print();", //calling D.Print will call `void Print()` function below..
};
string Types[] = {
"D", "record B: Integer; end;" //D is a record holding an integer, B..
};
Export void Print()
{
std::cout<<"HEY!!!";
}
This works just fine. In lape I do:
var
Test: D;
begin
Test.Print();
end.
and it works. Actually didn't expect it to work but it works.. I just don't want to export "Lape records".. I want to know how to export pascal classes.
Now how does Simba actually do this? I want to know because mine doesn't work in PS (only lape because of Lape's record->function syntax) yet somehow Simba is able to export TMufasaBitmap to PS and all that fancy stuff..
Any ideas?