Recent

Author Topic: Why does the TypeInfo intrinsic return a typeless pointer instead of PTypeInfo?  (Read 1941 times)

SlightlyOutOfPhase

  • New member
  • *
  • Posts: 8
« Last Edit: February 21, 2020, 10:41:00 pm by SlightlyOutOfPhase »

howardpc

  • Hero Member
  • *****
  • Posts: 3449
The "reasoning" may simply be for Delphi compatibility.

taazz

  • Hero Member
  • *****
  • Posts: 5365
because ptypeinfo is declared in the typinfo unit which is compiler specific and for that reason can not be allowed to polute the system unit which should be as agnostic as possible.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

dredd

  • New member
  • *
  • Posts: 5
why should it make sense? let it be and go ahead
burp!

 

TinyPortal © 2005-2018