Skip to content

Conversion of pointer parameters into references #105

@skvadrik

Description

@skvadrik

I suggest to convert a parameter like "i" (function "compile") and "Go" (function "find") from a pointer to a reference so that further tests can be omitted because the intended check can be performed at compile time.
http://en.wikipedia.org/wiki/Reference\_\(C%2B%2B\)\#Relationship\_to\_pointers

Can such an interface design adjustment be applied on other places in the source code, too?
http://re2c.svn.sourceforge.net/viewvc/re2c/trunk/re2c/re.h?revision=850&view=markup
http://re2c.svn.sourceforge.net/viewvc/re2c/trunk/re2c/code.h?revision=525&view=markup

Original comment by: elfring

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions