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
A little bug in fpsimages...
by
Roni Wolf
[
Today
at 02:32:44 am]
Why isn't Lazarus / Free ...
by
Lenny33
[
Today
at 02:18:52 am]
ZeosDb with TvPlain Updat...
by
eldonfsr
[
Today
at 01:46:21 am]
I can write your README.m...
by
wp
[
Today
at 01:25:28 am]
Mouse x-y Data Table
by
Gigatron
[
Today
at 01:04:41 am]
[SOLVED] Anyone can tell ...
by
1HuntnMan
[May 14, 2025, 11:25:03 pm]
Command-line args are not...
by
AlexTP
[May 14, 2025, 11:10:52 pm]
Include Informative Line ...
by
munair
[May 14, 2025, 10:53:36 pm]
How to use MySQL by PHP ?
by
Leledumbo
[May 14, 2025, 09:11:11 pm]
A problem with ptcmouse
by
TRon
[May 14, 2025, 09:08:24 pm]
Why there is no build-in ...
by
TRon
[May 14, 2025, 08:42:45 pm]
Anyone into mDNS?
by
bobby100
[May 14, 2025, 08:31:52 pm]
Add an off topic category...
by
Joanna from IRC
[May 14, 2025, 08:03:18 pm]
Practical Ways to Help La...
by
Joanna from IRC
[May 14, 2025, 07:58:45 pm]
FPC 3.2.2 + NASM Windows ...
by
marcov
[May 14, 2025, 07:39:06 pm]
Compilation Failure of Me...
by
wp
[May 14, 2025, 07:30:50 pm]
Binary Matrix Effect
by
Gigatron
[May 14, 2025, 07:06:02 pm]
Need some clarificatio pl...
by
Aruna
[May 14, 2025, 03:30:09 pm]
object width, object.canv...
by
Phoenix
[May 14, 2025, 01:31:31 pm]
LCL? - Working with files...
by
djongepier
[May 14, 2025, 01:03:15 pm]
[SOLVED] Android: how to ...
by
mirce.vladimirov
[May 14, 2025, 11:54:41 am]
Added components from lis...
by
Rico54
[May 14, 2025, 11:39:41 am]
Errors linking the projec...
by
MarcoST
[May 14, 2025, 10:10:18 am]
Help Wanted
by
af0815
[May 14, 2025, 08:38:16 am]
Can copy area ?
by
dodgex
[May 14, 2025, 05:19:05 am]
« previous
next »
Print
Pages:
1
2
[
3
]
Author
Topic: making types totally incompatible (Read 2264 times)
Thaddy
Hero Member
Posts: 16937
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