× Discussions for CodeTyphon Object Pascal Programming Language

Question How class/component to use for map strin->integer or pointer?

  • Andrzej B
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
9 months 1 week ago #14174 by Andrzej B
or other maps;
If templates are enabled in FreePascal?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
9 months 1 week ago #14175 by Sternas Stefanos
Please Sir
what exactly do you mean ?

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • Andrzej B
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
9 months 1 week ago #14176 by Andrzej B
There is module fgl.pp and has
generic TFPGMap<TKey, TData> = class(TFPSMap)
but I can't add fgl in uses part. In which package is fgl?
Maybe modules with generic are not visible untilI set options "enable generic"?

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
9 months 1 week ago - 9 months 1 week ago #14179 by Sternas Stefanos
Sir
fgl.pp is part of FPC (FreePascal)
C:\codetyphon\fpcsrc\rtl\objpas\fgl.pp

so NOT need to add any Typhon IDE package to your app.
Just add to you app "uses" fgl unit, the compiler (FPC) know where FPC files are.

FPC don't knows where Typhon IDE files are, for this reason you must add packages to your app

PilotLogic Architect and Core Programmer
Last edit: 9 months 1 week ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.