Hi guys,
I have this getter function:
So what should I do there? I could:Code:function TNashaGLFont.GetCharacter(const I: Integer): TnaFontChar; begin if (I >= 0) and (I < Count) then result := FChars[I] else //what do do here? end;
> Return a nullified record. But which function should I use to nullify it so that it works in both Delphi and FPC?
> I could return a PNaFontChar instead but that would make the data editable, which is not always wanted.
> I could simply do nothing and have an extra compiler warning.
What do you guys normally do with this?
Thanks
Bookmarks