#17 Conversion of pointer parameters into references

open
nobody
None
5
2009-09-18
2009-09-18
No

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

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks