I want to use the pgf oo library to create a new class. Unfortunately, even this fails:
\documentclass{article}
\usepackage{tikz}
\usepgfmodule{oo}
\pgfooclass{mapEntry}{ %
\method mapEntry() {%
}
}
\begin{document}
\pgfoonew \myObj = new mapEntry()
\end{document}
This is the error message I get:
Runaway argument?
\myObj = new mapEntry() \end {document}
! File ended while scanning use of \pgfoo@new.
<inserted text>
\par
Why does it fail? I found literally nothing useful about this, apart from the tikz manual chapter on the oo library.