Nope.  Real nice try though.  It might be better done as;
 
S (J(N),DK)=+@("$P("_R_"0),U,2)"),R=$P(^(0),U)
 
  While this looks like the parens are not even, please remember that the R is probably of the form, "^DPT(DA,".  It is also a sneaky way of changing the focus of the naked reference ^(0).  In the example I just drew, we would be looking at the first piece of ^DPT(DA,0) and not ^DPT(0) as some might expect.  The circuitous reference through R is to allow greater flexibility to be pointing to nearly any other entity or sub-entity in the same way.
----- Original Message -----
Sent: Saturday, December 31, 2005 1:51 PM
Subject: [Hardhats-members] M syntax question

I found the following line in the file DIS.m

 set @("(J(N),DK)=+$piece("_R_"0),U,2)"),R=$piece(^(0),U)

would this be the same thing?

set (J(N),DK)=+$piece(@(R_0)),U,2)
set R=$piece(^(0),U)

Thanks
Kevin

Reply via email to