Sign in Join
Wiki copytemporary

Generics Vote: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11Please add your signature in one of two categories below (add a line "* \~\~\~~"). Look [[Generics proposals|here]] for examples. Please add small explanation if you vote for other.
22
33### Vote for \<\> syntax
44
55- Bram 14:14, 9 Nov 2005 (CET)
66- Gadnio 18:15 28 Nov 2005 (GMT+2)
77- Wanderlan 15:26, 7 November 2006 (CET). See another example already implemented in Object Pascal at [Chrome Syntax](http://www.chromesville.com/articles/?id=%7BA1D08EE3-0D9E-4828-AFB3-B2C1E772186E%7D). Simple, Clean and Elegant. With out unnecessary reserved words as **Generic** and **Specialize**. Perhaps Delphi follow this syntax. An another option use '()' instead '\<\>' for more Pascal compliance (No C-ism), similar to [Schema Types](http://www.gnu-pascal.de/gpc/Schema-Types.html#Schema-Types) (Generics Pascalism) in Extended Pascal (ISO-10206) and GNU Pascal.\
88 \
99 FPC's generics are actually more than the simply generics implemented by .Net languages. FPC's implementation is more like C++ templates which are much more powerful though they has been limited to avoid the ugliest C++ styled template hacking --FPK 20:25, 7 November 2006 (CET)\
1010 \
1111- dr_evil 05:25 30 Dec 2006 (GMT+1)
1212- Implementation 11:08, 01 Nov 2010 (CET)
1313
1414### Vote for adding generic keyword
1515
1616- Neli 13:48, 9 Nov 2005 (CET)
1717- Almindor 14:38, 9 Nov 2005 (CET)
1818- MvC 14:38, 9 Nov 2005 (CET) Note: done by Almindor per request
1919- Marcov 14:48, 9 Nov 2005 (CET). "template" might be better
2020- Msmat 15:29, 9 Nov 2005 (CET)
2121- Loesje 16:05 9 Nov 2005 (CET) Note: done by Almindor per request
2222- Bartek 16:28, 9 Nov 2005 (CET)
2323- Gpremuda 23:42, 9 Nov 2005 (CET)
2424- Sekel 03:05, 10 Nov 2005 (CET)
2525- Jeff P.
2626- Michalis 19:55, 10 Nov 2005 (CET)
2727- Giulio 18:48, 7 November 2006 (CET)
2828- Kbowes 06:11, 13 December 2008 (CET) Sounds good, but I'm thinking we should use it as a modifier:
2929
3030` type`\
3131`   TGenericClass = generic class of x`\
3232`     ..`\
3333`   end;`\
3434`   TGenericRec = generic record of x`\
3535`      ...`\
3636`   end;`
3737
38-</syntaxhighlight>
39-
4038I agree with above that we really shouldn't be copying C++'s cryptic use of \<\> for them.
4139
4240- Kai Burghardt ([[User talk:Kai Burghardt|talk]]) 15:40, 8 November 2018 (CET)
4341
4442### Vote for radically different syntax
4543
4644- PublicJoke 15:08, 10 Nov 2005 (CET) Note: it's better to extend 'unit' and 'uses' clauses
4745
4846## See also
4947
5048- [[Generics]]
5149
5250---
5351*From the Free Pascal wiki, page "Generics Vote", as it stood on 2018-11-08 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
5452Category: FPC
5553Category: Historical

Back to history