<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Because the expansion of \refn requires information that is not
available at the time that you attempt to expand it using \edef; you
need to defer the expansion, as below.<br>
<br>
\input eplain <br>
\message {\string \refn: \meaning \refn}<br>
\def \mytest<br>
{<br>
\edef \tempa {\noexpand \refn {f}}<br>
} <br>
\mytest <br>
\end <br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.01040508.02000103@Rhul.Ac.Uk"><br>
Philip Taylor</div>
</body>
</html>