Abstract
Implicit and dynamic parameters are proposed as a general means to reduce the length of argument lists of function calls without resorting to dangerous global variables. In C++, these new kinds of parameters constitute a generalization of parameters with default arguments, whose values can be omitted in function calls. In contrast to the latter, however, the values of implicit and dynamic parameters are not obtained from a function’s definition context, but rather from its different calling contexts. This is in turn similar to so-called dependent names in function templates, but offers a higher degree of flexibility and comprehensibility.
Access provided by Autonomous University of Puebla. Download to read the full chapter text
Chapter PDF
Similar content being viewed by others
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
References
Costanza, P.: Dynamically Scoped Functions as the Essence of AOP. ACM SIGPLAN Notices 38(8), 29–36 (2003)
Gosling, J., Joy, B., Steele, G., Bracha, G.: The Java Language Specification, 3rd edn. Addison-Wesley, Reading (2005)
Hanson, D.R., Proebsting, T.A.: Dynamic Variables. In: Proc. 2001 ACM SIGPLAN Conf. on Programming Language Design and Implementation (PLDI), Snowbird, UT, June 2001, pp. 264–273. ACM, New York (2001)
Heinlein, C.: Local Virtual Functions. In: Hirschfeld, R., Kowalczyk, R., Polze, A., Weske, M. (eds.) NODe 2005, GSEM 2005, Erfurt, Germany, September 2005. Lecture Notes in Informatics, vol. P-69, pp. 129–144. Gesellschaft für Informatik, Bonn (2005)
Heinlein, C.: Global and Local Virtual Functions in C++. Journal of Object Technology 4(10), 71–93 (2005), http://www.jot.fm/issues/issue_2005_12/article4
Kiczales, G., Hilsdale, E., Hugunin, J., Kersten, M., Palm, J., Griswold, W.G.: An Overview of AspectJ. In: Knudsen, J.L. (ed.) ECOOP 2001. LNCS, vol. 2072, pp. 327–353. Springer, Heidelberg (2001)
Lewis, J.R., Shields, M.B., Meijer, E., Launchbury, J.: Implicit Parameters: Dynamic Scoping with Static Types. In: Proc. 27th ACM Symp. on Principles of Programming Languages, Boston, MA, January 2000, pp. 108–118. ACM, New York (2000)
Spinczyk, O., Gal, A., Schröder-Preikschat, W.: AspectC++: An Aspect-Oriented Extension to the C++ Programming Language. In: Noble, J., Potter, J. (eds.) Proc. 40th Int. Conf. on Technology of Object-Oriented Languages and Systems (TOOLS Pacific), Sydney, Australia, February 2002, pp. 53–60 (2002)
Steele Jr., G.L.: Common Lisp: The Language, 2nd edn. Digital Press, Bedford (1990)
Stroustrup, B.: The C++ Programming Language, Special edn. Addison-Wesley, Reading (2000)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2006 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Heinlein, C. (2006). Implicit and Dynamic Parameters in C++. In: Lightfoot, D.E., Szyperski, C. (eds) Modular Programming Languages. JMLC 2006. Lecture Notes in Computer Science, vol 4228. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11860990_4
Download citation
DOI: https://doi.org/10.1007/11860990_4
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-40927-4
Online ISBN: 978-3-540-40928-1
eBook Packages: Computer ScienceComputer Science (R0)