Skip to content

Commit

Permalink
Merge pull request #1175 from pat-rogers/master
Browse files Browse the repository at this point in the history
Use consistent scheme for multiple implementations
  • Loading branch information
gusthoff authored Jan 17, 2025
2 parents eef5b84 + e550a8e commit c5dd329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/courses/ada-idioms/chapters/type_punning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ both in the following subsections. The purpose in both approaches is to apply a
different type, thereby making available a different type-specific view of the
storage.

Implementation 1: Overlays
~~~~~~~~~~~~~~~~~~~~~~~~~~
Overlays
~~~~~~~~

The first approach applies an alternative type to an existing object by
declaring another object at the same location in memory but with a different
Expand Down Expand Up @@ -180,8 +180,8 @@ the other hand, even one Ada object with an address specified overlays that obje
with the machine storage view of that address...)


Implementation 2: Unchecked Conversions on Address Values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unchecked Conversions on Address Values
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The common implementation of type punning, across multiple languages, involves
converting the address of a given object into a pointer designating the
Expand Down

0 comments on commit c5dd329

Please sign in to comment.