Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
C++ template code to Freepascal
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Component with TGraphicCo...
by
jamie
[
Today
at 10:43:41 pm]
How to display barcode co...
by
jmpessoa
[
Today
at 10:43:21 pm]
Lazarus Release 2.2.6
by
Lulu
[
Today
at 08:47:51 pm]
[SOLVED] Font question
by
Pe3s
[
Today
at 07:39:06 pm]
Code-Review Request: Alte...
by
Martin_fr
[
Today
at 06:54:59 pm]
class function TCDWSButto...
by
Bart
[
Today
at 06:27:52 pm]
Pasar punteros de DLL C a...
by
BlueIcaro
[
Today
at 06:10:28 pm]
[Solved] Tab stops in Ric...
by
Nicole
[
Today
at 06:05:28 pm]
[SOLVED] FPSpreadsheet, r...
by
nomorelogic
[
Today
at 05:48:46 pm]
An ASCII logo for Pascal ...
by
Fred vS
[
Today
at 05:31:12 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: C++ template code to Freepascal (Read 286 times)
Magical Hey Day
Guest
C++ template code to Freepascal
«
on:
December 26, 2022, 05:06:47 pm »
How would this translate to generics here in FP?
Code: C
[Select]
[+]
[-]
Ref
<
Texture
>
TerrainWorldArea
::
get_map_texture
(
)
const
{
return
_map_texture
;
}
Really appreciate any pointers, as I'm trying to crack these codes.
Logged
Red_prig
Jr. Member
Posts: 97
Re: C++ template code to Freepascal
«
Reply #1 on:
December 26, 2022, 05:34:02 pm »
https://www.freepascal.org/docs-html/ref/refse53.html#x107-1310008.2
https://wiki.freepascal.org/Generics
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
Beginners
(Moderators:
FPK
,
Tomas Hajny
) »
C++ template code to Freepascal
TinyPortal
© 2005-2018