Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Sep 24, 2016
0 parents commit ab80572
Show file tree
Hide file tree
Showing 9 changed files with 315 additions and 0 deletions.
Binary file added 439.zip
Binary file not shown.
Binary file added 442.pdf
Binary file not shown.
Binary file added 443.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions 493.html
@@ -0,0 +1,11 @@
Chapter 1: Language Interoperability <br />
Chapter 2: ilasm Directives and Attributes <br />
Chapter 3: CIL Opcodes <br />
Chapter 4: ilasm and CIL in Practice <br />
Chapter 5: Debugging CIL <br />
Chapter 6: .NET Languages and CIL <br />
Chapter 7: Emitting Types <br />
Chapter 8: Dynamic Proxies in .NET <br />
Chapter 9: CIL Tips <br />
Appendix A The Future of CIL <br />
Appendix B .NET
Expand Down
248 changes: 248 additions & 0 deletions 550.html
@@ -0,0 +1,248 @@
<h1 align="center">Errata for "CIL Programming: Under the Hood of .NET"</h1>

<h2>Directives Quick Reference, Front Cover</h2>

<h3>Found by: Jason Bock</h3>
<h3>Added: 08/15/2002</h3>

<p>
For the .size directive, change this:
</p>

<p>
"UDefines a block of memory in a class"
</p>

<p>
to this:
</p>

<p>
"<b>Defines</b> a block of memory in a class"
</p>


<h2>Chapter 2, "beforefieldinit Redux" section, page 51</h2>

<h3>Found by: Jesse Liberty</h3>
<h3>Added: 08/15/2002</h3>

<p>
In the first paragraph, change this:
</p>

<p>
"...there's no reason to let the runtime be more efficient..."
</p>

<p>
to this:
</p>

<p>
"...there's no reason <b>not</b> to let the runtime be more efficient..."
</p>


<h2>Chapter 2, "Overriding Methods" section, page 60</h2>

<h3>Found by: Jurgen Piller</h3>
<h3>Added: 08/15/2002</h3>

<p>
The abstract method example is correct, but the wording of the classes (and the following paragraph) may confuse matters. Replace this:
</p>

<p>
"ImplementationClass decides to implement this method by providing a virtual method with the correct signature."
</p>

<p>
with this:
</p>

<p>
"ImplementationClass decides to implement this method by providing a virtual method with the correct signature. <b>Note that while AbstractMethod() is not defined as abstract in ImplementationClass, the class itself is still abstract.</b>"
</p>

<h2>Chapter 2, "Overriding Methods" section, page 60</h2>

<h3>Found by: Louis Gutnicki</h3>
<h3>Added: 11/18/2002</h3>

<p>
Change this:
</p>

<p>
.class public SubClassNewSlot<br/>
&nbsp;&nbsp;&nbsp;&nbsp;extends BaseClassNewSlot
</p>

<p>
to this:
</p>

<p>
.class public SubClassNewSlot<br/>
&nbsp;&nbsp;&nbsp;&nbsp;extends <b>BaseClassNewSlot</b>
</p>

<h2>Chapter 2, "Overriding Methods" section, page 61</h2>

<h3>Found by: Louis Gutnicki</h3>
<h3>Added: 11/18/2002</h3>

<p>
Change this:
</p>

<p>
"...that will not override BaseClassSlot.BaseMethod()."
</p>

<p>
to this:
</p>

<p>
"...that will not override <b>BaseClassNewSlot</b>.BaseMethod()."
</p>

<h2>Chapter 3, Introduction section, page 69</h2>

<h3>Found by: Jason Bock</h3>
<h3>Added: 08/15/2002</h3>

<p>
Change this:
</p>

<p>
"I'll start by showing you how the virtual execution stack..."
</p>

<p>
to this:
</p>

<p>
"I'll start by showing you how the <b>evaluation</b> stack..."
</p>

<h2>Chapter 3, "Creating Type Instances" section, page 88</h2>

<h3>Found by: Paul Bates</h3>
<h3>Added: 11/18/2002</h3>

<p>
Change this:
</p>

<p>
stloc.1<br/>
// Set newBT = null<br/>
ldnull<br/>
stloc.1
</p>

<p>
to this:
</p>

<p>
<b>stloc.0</b><br/>
// Set newBT = null<br/>
ldnull<br/>
<b>stloc.0</b>
</p>

<h2>Chapter 3, "Constructors" section, page 91</h2>

<h3>Found by: Jesse Liberty</h3>
<h3>Added: 08/15/2002</h3>

<p>
The wording in the second paragraph is a little confusing. Change this:
</p>

<p>
"In the default constructor, a base class's constructor needs to be called as well."
</p>

<p>
to this:
</p>

<p>
"In <b>any constructor, you need to call a constructor on your base class. This can be the default, no-argument constructor or a custom constructor. It doesn't matter where you make this base class constuctor call so long as it's done before the constructor is finished (although I'd recommend making it the first line of code in the constructor so you don't forget about it).</b>"
</p>

<p>
In future printings I'll also have a reference to Section 1.8.1.4 of Partition III here.
</p>

<h2>Chapter 4, "Field Definitions" section, page 125</h2>

<h3>Found by: Louis Gutnicki</h3>
<h3>Added: 11/18/2002</h3>

<p>
Change this:
</p>

<p>
.field private class RIG.RandomValues/RandomDelegate m_NewRandom
</p>

<p>
to this:
</p>

<p>
.field private class RIG.RandomValues/RandomDelegate <b>NewRandom</b>
</p>

<h2>Chapter 6, "The VB .NET Implementation" section, page 199</h2>

<h3>Found by: Jurgen Piller</h3>
<h3>Added: 08/15/2002</h3>

<p>
Change the caption for Listing 6.3 from this:
</p>

<p>
Listing 6-3. VB .NET Compilation Results in Release Mode with Optimizations
</p>

<p>
to this:
</p>

<p>
Listing 6-3. VB .NET Compilation Results in Release Mode with <b>no</b> Optimizations
</p>

<h2>Chapter 8, "Base Method Invocation Setup" section, page 296</h2>

<h3>Found by: Justin Rudd</h3>
<h3>Added: 11/18/2002</h3>

<p>
Change the code from this:
</p>

<p>
Type.GetType(paramTypeName)
</p>

<p>
to this:
</p>

<p>
Type.GetType(paramTypeName<b> + ", " + pi.ParameterType.Assembly.FullName</b>);
</p>

<h6>Last Modified: 11/18/2002</h6>
Binary file added 9781590590416.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Freeware License, some rights reserved

Copyright (c) 2002 Jason Bock

Permission is hereby granted, free of charge, to anyone obtaining a copy
of this software and associated documentation files (the "Software"),
to work with the Software within the limits of freeware distribution and fair use.
This includes the rights to use, copy, and modify the Software for personal use.
Users are also allowed and encouraged to submit corrections and modifications
to the Software for the benefit of other users.

It is not allowed to reuse, modify, or redistribute the Software for
commercial use in any way, or for a user�s educational materials such as books
or blog articles without prior permission from the copyright holder.

The above copyright notice and this permission notice need to be included
in all copies or substantial portions of the software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


15 changes: 15 additions & 0 deletions README.md
@@ -0,0 +1,15 @@
#Apress Source Code

This repository accompanies [*CIL Programming*](http://www.apress.com/9781590590416) by Jason Bock (Apress, 2002).

![Cover image](9781590590416.jpg)

Download the files as a zip using the green button, or clone the repository to your machine using Git.

##Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

##Contributions

See the file Contributing.md for more information on how you can contribute to this repository.
14 changes: 14 additions & 0 deletions contributing.md
@@ -0,0 +1,14 @@
# Contributing to Apress Source Code

Copyright for Apress source code belongs to the author(s). However, under fair use you are encouraged to fork and contribute minor corrections and updates for the benefit of the author(s) and other readers.

## How to Contribute

1. Make sure you have a GitHub account.
2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g.
`git checkout -b my_code_contribution`
4. Commit your change. Include a commit message describing the correction. Please note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!

0 comments on commit ab80572

Please sign in to comment.