Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1739be5

Browse files
committed
Small grammatical correction from Frank Stajano. Added comment with
suggestion from Frank for an example and further explanation.
1 parent 46346ec commit 1739be5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Doc/ext/ext.tex

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,8 @@ \subsection{NULL Pointers
13981398
exception occurred. The reason for not testing for \NULL{}
13991399
arguments is that functions often pass the objects they receive on to
14001400
other function --- if each function were to test for \NULL{},
1401-
there would be a lot of redundant tests and the code would run slower.
1401+
there would be a lot of redundant tests and the code would run more
1402+
slowly.
14021403

14031404
It is better to test for \NULL{} only at the ``source'', i.e.\ when a
14041405
pointer that may be \NULL{} is received, e.g.\ from
@@ -1422,7 +1423,13 @@ \subsection{NULL Pointers
14221423
calling convention --- this is still found in much existing code.}
14231424

14241425
It is a severe error to ever let a \NULL{} pointer ``escape'' to
1425-
the Python user.
1426+
the Python user.
1427+
1428+
% Frank Stajano:
1429+
% A pedagogically buggy example, along the lines of the previous listing,
1430+
% would be helpful here -- showing in more concrete terms what sort of
1431+
% actions could cause the problem. I can't very well imagine it from the
1432+
% description.
14261433

14271434

14281435
\section{Writing Extensions in \Cpp{}

0 commit comments

Comments
 (0)