tg74
|
634338dcd2
merge with trunk
|
пре 10 година |
tg74
|
3b09397e34
merge with trunk
|
пре 11 година |
svenbarth
|
32beb30129
Small improvements for generate_specializations.
|
пре 12 година |
svenbarth
|
e8edbd29c0
Fix for Mantis #24687.
|
пре 12 година |
svenbarth
|
fb8b0e7a27
Fix for Mantis #24453. Check for nested types after a specialization. Additionally check correctly whether a type is really a generic before accepting it when parsing a generic.
|
пре 12 година |
svenbarth
|
9d48bc0baf
Implement cross unit type overloading of generics. This fixes the regression introduced with revision 25498.
|
пре 12 година |
svenbarth
|
d03507671d
Fix for Mantis #24953.
|
пре 12 година |
svenbarth
|
53ea24a0b1
Correctly specialize generics if locally declared types are used (e.g. two procedures could both define a different "TRec" type which is used to specialize a generic inside the procedures).
|
пре 12 година |
svenbarth
|
956b26bc97
Completely reworked implementation of generic constraints, by moving the generic constraint data from the symbols to the definitions (I originally thought that this would simplyfy things, but the more correct approach is to add it to the defs).
|
пре 12 година |
svenbarth
|
cc5a108cca
Allocate the list for generic parameters in tstoreddef only on demand as most defs won't contain generic parameters anyway (avoids a little bit of runtime and memory overhead per def).
|
пре 12 година |
svenbarth
|
344571cb4e
Added support for type helpers. In non Delphi modes they use "type helper" and in mode Delphi they use "record helper". They can also be used on constants.
|
пре 12 година |
svenbarth
|
fdb1950227
Fix for revision 23344.
|
пре 12 година |
svenbarth
|
27f5e4f582
Fix for Mantis #23547. Basically we now fail with nicer error messages.
|
пре 12 година |
svenbarth
|
4adb36e8da
Add support for generic type constraints. They are currently only useful to stop specialization of a generic. The parsing of a generic is still too lax and needs to be changed in the future...
|
пре 12 година |
svenbarth
|
9ef4a35a7b
Fix the fix for Mantis #21538. The check never really worked up to now...
|
пре 12 година |
svenbarth
|
54c1e638ad
Fix for Mantis #22428.
|
пре 13 година |
svenbarth
|
88af293155
Fix for Mantis #22160
|
пре 13 година |
svenbarth
|
29c71d39ac
Preparations for upcoming work on generics:
|
пре 13 година |
Jonas Maebe
|
07ebc51b6c
* always store generics token streams in little endian, so we don't have to
|
пре 13 година |
svenbarth
|
a908db5a91
Partially fix for Mantis #22160. This resolves the internal error, but the given example units still don't compile, because of the way we handle specializations and unit loading (more about this once I fixed that, too).
|
пре 13 година |
svenbarth
|
75bf094e3f
Fix for Mantis #21064.
|
пре 13 година |
svenbarth
|
d2fabd2a22
Fix for Mantis #21350
|
пре 13 година |
paul
|
4312aa4e08
compiler: allow compiler to find real class definition during class members parse to handle references to self constants + test
|
пре 13 година |
svenbarth
|
b3595893c8
pgenutil.pas, generate_specialization: set the correct module index, so that warnings, etc. that are generated for a type declaration are printed using the module where the generic came from (this is already done for method bodies, but not for declarations)
|
пре 13 година |
svenbarth
|
810bd7ddab
+ symtable.pas, tspecializesymtable.create: SymList and DefList do not need to own the symbols and defs as they are moved to another symtable before the specialize symtable is destroyed (avoids the need to call "extract" on those lists)
|
пре 13 година |
Jonas Maebe
|
24be42d509
* changed "crc" variable from longint to cardinal to avoid (harmless) range
|
пре 13 година |
svenbarth
|
5b1b194b47
* pdecvar.pas, read_record_fields: don't generate BSS-data for generic static fields (doesn't fix any specific bug, but we don't need space reserved for the field)
|
пре 13 година |
svenbarth
|
ef10ce3bd0
* pgenutil.pas, generate_specialization:
|
пре 13 година |
svenbarth
|
04683c5f13
pgenutil.pas, generate_specialization:
|
пре 13 година |
svenbarth
|
a7a0ba0cf4
* Move the setup and teardown of the specialization symtable stack into two extra
|
пре 13 година |