Is there a way to add methods to records in a TdwsUnit? It seems the members property only allows you to add fields. And is it possible to register constructors as well?
Asked
Active
Viewed 123 times
1 Answers
1
Not yet, the TdwsRecord.DoGenerate method doesn't support them yet...
Record constructors aren't supported at the moment, I'm considering reserving the syntax for true constructors (ala C++), you can achieve Delphi-like record constructor by using class functions (though due to the above limitation, they can currently only be declared in script code).

Eric Grange
- 5,931
- 1
- 39
- 61