summary refs log tree commit diff stats
path: root/doc/destructors.rst
Commit message (Collapse)AuthorAgeFilesLines
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-281-4/+8
| | | | code compatibility (#15105)
* cleanup ARC documentation (#15100)Andreas Rumpf2020-07-281-42/+0
|
* An optimizer for ARC (#14962)Andreas Rumpf2020-07-151-1/+27
| | | | | | | | | | | | | | | | | | | | * WIP: an optimizer for ARC * do not optimize away destructors in 'finally' if unstructured control flow is involved * optimized the optimizer * minor code cleanup * first steps to .cursor inference * cursor inference: big steps to a working solution * baby steps * better .cursor inference * new feature: expandArc for easy inspection of the AST after ARC transformations * added topt_cursor test * adapt tests * cleanups, make tests green * optimize common traversal patterns * moved test case * fixes .cursor inference so that npeg compiles once again * cursor inference: more bugfixes Co-authored-by: Clyybber <darkmine956@gmail.com>
* Update docs and changelogClyybber2020-07-101-3/+4
|
* scoped memory management (#14790)Andreas Rumpf2020-07-041-2/+2
| | | | | | | * fixes the regressions * closes #13936 * scope based memory management implemented * enabled tcontrolflow.nim test case * final cleanups
* Fix some typos (#14843)Danil Yarantsev2020-06-281-1/+1
|
* fixes #13881Andreas Rumpf2020-05-121-3/+44
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* changed type() to typeof() in docs and error messages (#14084)hlaaftana2020-04-241-2/+2
|
* arc optimizations (#13325)Andreas Rumpf2020-03-181-0/+1
| | | | | * scope based destructors * handle 'or' and 'and' expressions properly, see the new test arc/tcontrolflow.nim * make this branch mergable, logic is disabled for now
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-041-0/+17
| | | | | | | | | | | | | | * ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
* make sink operator optional (#13068)cooldome2020-01-171-2/+6
| | | | | | | | | | | | | | | | * make sink operator optional * bug fix, add changelog entry * Trigger build * fix one regression * fix test * Trigger build * fix typos
* Fix typo in doc/destructors.rst (#13148)Tomohiro2020-01-141-1/+1
|
* destructors.rst: added a missing 'var' to the motivating exampleAraq2019-10-281-1/+1
|
* destructors: spec reflects reality, =sink is here to stayAndreas Rumpf2019-08-111-131/+135
|
* destructors spec: be more precise about temporariesAndreas Rumpf2019-07-271-1/+3
|
* added destructors.rst documentAndreas Rumpf2019-07-011-0/+563