Lazarus

Programming => General => Topic started by: SlightlyOutOfPhase on June 15, 2018, 08:09:28 pm

Title: Why does the TypeInfo intrinsic return a typeless pointer instead of PTypeInfo?
Post by: SlightlyOutOfPhase on June 15, 2018, 08:09:28 pm
.
Title: Re: Why does the TypeInfo intrinsic return a typeless pointer instead of PTypeInfo?
Post by: howardpc on June 15, 2018, 10:08:05 pm
The "reasoning" may simply be for Delphi compatibility.
Title: Re: Why does the TypeInfo intrinsic return a typeless pointer instead of PTypeInfo?
Post by: taazz on June 15, 2018, 10:36:10 pm
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.
Title: Re: Why does the TypeInfo intrinsic return a typeless pointer instead of PTypeInfo?
Post by: dredd on June 16, 2018, 08:03:04 am
why should it make sense? let it be and go ahead
TinyPortal © 2005-2018