Files
Nim/compiler
Zahary Karadjov fee2a7ecfa Experimental support for delayed instantiation of generics
This postpones the semantic pass over the generic's body until
the generic is instantiated. There are several pros and cons for
this method and the capabilities that it enables may still be possible
in the old framework if we teach it a few new trick. Such an attempt
will follow in the next commits.

pros:
1) It allows macros to be expanded during generic instantiation that
will provide the body of the generic. See ``tmacrogenerics``.
2) The instantiation code is dramatically simplified. Dealing with unknown
types in the generic's body pre-pass requires a lot of hacky code and error
silencing in semTypeNode. See ``tgenericshardcases``.

cons:
1) There is a performance penalty of roughly 5% when bootstrapping.
2) Certain errors that used to be detected in the previous pre-pass won't
be detected with the new scheme until instantiation.
2013-08-23 01:10:20 +03:00
..
2013-05-18 10:12:01 +02:00
2013-05-07 17:19:36 +02:00
2013-05-02 00:07:59 +01:00
2013-03-17 23:40:03 +01:00
2013-08-13 11:21:02 +02:00
2013-03-16 23:53:07 +01:00
2012-11-28 01:15:13 +02:00
2012-10-14 12:02:57 +02:00
2012-09-08 15:43:21 +02:00
2012-08-20 08:44:17 +02:00
2013-04-28 23:41:10 +02:00
2013-07-30 08:45:00 +02:00
2013-06-28 16:40:01 +02:00
2013-08-13 11:21:02 +02:00
2013-07-30 08:45:00 +02:00
2013-06-09 23:51:29 +02:00
2013-05-25 23:37:40 +02:00
2013-05-12 21:01:39 +03:00
2012-12-11 20:06:15 +01:00
2013-06-30 21:15:28 +02:00
2013-08-13 11:21:02 +02:00
2013-08-03 21:14:57 +02:00
2013-06-27 19:57:01 +02:00
2013-07-31 20:35:04 +02:00
2013-07-02 19:32:12 +02:00
2013-08-19 01:26:37 +03:00
2013-07-24 23:07:28 +02:00
2013-08-07 00:01:58 +03:00
2013-05-05 16:34:00 +03:00
2013-06-29 10:04:18 +02:00
2013-08-22 19:28:34 +02:00
2013-08-22 19:28:34 +02:00
2013-08-22 19:28:34 +02:00
2013-08-13 11:21:02 +02:00

This directory contains the Nimrod compiler written in Nimrod. Note that this
code has been translated from a bootstrapping version written in Pascal, so
the code is **not** a poster child of good Nimrod code.