From 16d128e5e10d541a78654b86409d5a3539f07708 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 15 Aug 2009 23:57:48 +0000 Subject: asymptote 1.83 git-svn-id: svn://tug.org/texlive/trunk@14696 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/name.cc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'Build/source/utils/asymptote/name.cc') diff --git a/Build/source/utils/asymptote/name.cc b/Build/source/utils/asymptote/name.cc index 41280351ccf..0c822792e0c 100644 --- a/Build/source/utils/asymptote/name.cc +++ b/Build/source/utils/asymptote/name.cc @@ -170,22 +170,7 @@ bool qualifiedName::varTransVirtual(action act, coenv &e, // Push qualifier onto stack. qualifier->varTrans(READ, e, qt); - if (act == WRITE) { - em.error(getPos()); - em << "virtual field '" << *id << "' of '" << *qt - << "' cannot be modified"; - } - else { - // Call instead of reading as it is a virtual field. - v->encode(CALL, getPos(), e.c); - e.implicitCast(getPos(), target, v->getType()); - - if (act == CALL) - // In this case, the virtual field will construct a vm::func object - // and push it on the stack. - // Then, pop and call the function. - e.c.encode(inst::popcall); - } + v->encode(act, getPos(), e.c); // A virtual field was used. return true; -- cgit v1.2.3