
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pstricks-add}
\begin{document}
\multido{\i=0+30}{12}{%
\begin{pspicture}(-2,-2)(2,2)
\pscircle{1}
\pnode(1;\i){R}
\psset{arrows=->}
\psline(R)
\psline[linecolor=blue](R|0,0)
\psline[linecolor=red](0,0|R)
\psset{linecolor=gray,linestyle=dashed,linewidth=0.5\pslinewidth,arrows=-,dash=2pt 2pt}
\psline(R)(R|0,0)
\psline(R)(0,0|R)
\end{pspicture}}
\end{document}
Does a zero-length line with an arrow make sense? Is it a bug? I hope it is a bug. If it is not a bug, what is the best way to handle this case using a conditional macro in either TeX or PS level?
Apparently, this feature is also adopted by TikZ.

\documentclass[tikz,border=0pt]{standalone}
\usepackage{tikz}
\begin{document}
\tikzpicture
\fill[yellow] (-1,-1) -- (-1,1) -- (1,1) -- (1,-1) -- cycle;
\draw[->] (0,0)--(0,0);
\endtikzpicture
\end{document}

