Skip to main content

Implicit and Dynamic Parameters in C++

  • Conference paper
Modular Programming Languages (JMLC 2006)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4228))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Costanza, P.: Dynamically Scoped Functions as the Essence of AOP. ACM SIGPLAN Notices 38(8), 29–36 (2003)

    Article  Google Scholar 

  2. Gosling, J., Joy, B., Steele, G., Bracha, G.: The Java Language Specification, 3rd edn. Addison-Wesley, Reading (2005)

    Google Scholar 

  3. 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)

    Chapter  Google Scholar 

  4. 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)

    Google Scholar 

  5. 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

    Article  Google Scholar 

  6. 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)

    Chapter  Google Scholar 

  7. 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)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. Steele Jr., G.L.: Common Lisp: The Language, 2nd edn. Digital Press, Bedford (1990)

    MATH  Google Scholar 

  10. Stroustrup, B.: The C++ Programming Language, Special edn. Addison-Wesley, Reading (2000)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics