Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
making types totally incompatible
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
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
Range check, converting e...
by
jamie
[
Today
at 12:06:42 pm]
Practical Ways to Help La...
by
Joanna from IRC
[
Today
at 12:05:57 pm]
TSynCompletion failing wh...
by
Ñuño_Martínez
[
Today
at 11:38:11 am]
Animated Oscillating Line...
by
Dzandaa
[
Today
at 11:31:11 am]
TBCFluentProgressRing bug
by
circular
[
Today
at 11:27:35 am]
Pdf file size is huge wit...
by
meeeeeeeeee
[
Today
at 10:35:12 am]
Why isn't Lazarus / Free ...
by
alpine
[
Today
at 10:20:45 am]
BGRAGtkBitmap
by
circular
[
Today
at 09:52:07 am]
FPC 3.2.2 + NASM Windows ...
by
munair
[
Today
at 09:23:47 am]
Anyone into mDNS?
by
MaxM74
[
Today
at 08:27:51 am]
Animated toggle switch
by
hedgehog
[
Today
at 07:37:00 am]
I can write your README.m...
by
GAN
[
Today
at 03:51:30 am]
3D Dot Ball
by
Gigatron
[
Today
at 12:37:46 am]
A little bug in fpsimages...
by
wp
[May 15, 2025, 11:21:50 pm]
Feature request/suggestio...
by
440bx
[May 15, 2025, 10:37:14 pm]
Lazarus Release 4.0
by
Hansvb
[May 15, 2025, 10:20:16 pm]
A problem with ptcmouse
by
TBMan
[May 15, 2025, 09:40:51 pm]
Why there is no build-in ...
by
Nimbus
[May 15, 2025, 08:50:15 pm]
Feature request/suggestio...
by
440bx
[May 15, 2025, 07:58:33 pm]
Build mode Help button do...
by
440bx
[May 15, 2025, 07:54:27 pm]
How to convert TStrings t...
by
Remy Lebeau
[May 15, 2025, 06:35:35 pm]
[SOLVED] Added components...
by
Rico54
[May 15, 2025, 03:27:20 pm]
[SOLVED] How to "Jump To"...
by
paweld
[May 15, 2025, 02:40:52 pm]
PZ_Nes emulator
by
Ñuño_Martínez
[May 15, 2025, 02:29:40 pm]
Problems with Word
by
loaded
[May 15, 2025, 02:17:56 pm]
« previous
next »
Print
Pages:
1
2
[
3
]
Author
Topic: making types totally incompatible (Read 2275 times)
Thaddy
Hero Member
Posts: 16939
Ceterum censeo Trump esse delendam
Re: making types totally incompatible
«
Reply #30 on:
April 19, 2025, 03:13:24 pm »
How about:
Code: Pascal
[Select]
[+]
[-]
{$mode objfpc}
type
generic TMyGenericRecord<T>
=
record
value
:
T
;
end
;
begin
end
.
Initial tests show assignment is only to specialized T, nothing else.
Will finish it later.
«
Last Edit: April 19, 2025, 03:19:33 pm by Thaddy
»
Logged
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.
Print
Pages:
1
2
[
3
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
making types totally incompatible
TinyPortal
© 2005-2018