z-logo
open-access-imgOpen Access
Instructed late binding
Author(s) -
Seyed Hossein Haeri,
Paul Keir
Publication year - 2019
Publication title -
the uws academic portal (university of the west of scotland)
Language(s) - English
Resource type - Conference proceedings
ISBN - 978-1-4503-7292-3
DOI - 10.1145/3368640.3368644
Subject(s) - scala , computer science , metaprogramming , pointer (user interface) , compiler , programming language , java , pattern matching , parallel computing , artificial intelligence
Integration of a decentralised pattern matching is a technique that enables a recent solution to the Expression Problem. The single former implementation of this technique was in Scala. In this paper, we highlight the C++ implementation of the same technique to solve the Expression Problem in C++. Unlike the former implementation which relies on stackability of Scala traits, this new implementation relies on compile-time metaprogramming for automatic iterative pointer introspection at runtime. That iteration enables late binding using overload resolution, which the compiler is already capable of. The C++ implementation outperforms the Scala one by providing strong static type safety and offering considerably easier usage.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom