"OffsetOf(structutred type, field)" internal funtion feature request

Original Reporter info from Mantis: SIV
  • Reporter name: Igor Sudarikov

Description:

It would be better to use such function instead of dirty tricks such as "PtrUInt(@TMyClass(nil).fField)".

Ability to easily know field offset is quite useful in some tasks such as binding to script libraries. Also, the described trick does not work for records.

Mantis conversion info:

  • Mantis ID: 15416
  • Monitored by: » p_daniel (p_daniel), » MaartenJB (MaartenJB), » @MageSlayer (Denis Golovan), » @PascalDragon (Sven Barth)