Feature request: allow helpers for objects
Original Reporter info from Mantis: dmz73 @dmz73
-
Reporter name:
Original Reporter info from Mantis: dmz73 @dmz73
- Reporter name:
Description:
Advanced records allow use of record helpers but records do not allow inheritance.
Objects allow inheritance but do not allow use of helpers.
Classes allow inheritance and class helpers but do not allow allocation on stack.
Steps to reproduce:
Example of missing object helper:
program Project1;
{$mode objfpc}
{$modeswitch advancedrecords}
{$modeswitch typehelpers}
type
TO1 = object
V1: integer;
end;
TO2 = object(TO1)
V2: double;
end;
TO1H = object helper for TO1 // error
end;
begin
end.
Mantis conversion info:
- Mantis ID: 37297
- OS: Windows
- OS Build: 10
- Platform: x86_64
- Version: 3.3.1