Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: READ Puzzle
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 7 Topic 892 of 990
Post > Topic >>

Re: READ Puzzle

by Ed de Moel <demoel@[EMAIL PROTECTED] > Oct 1, 2007 at 04:51 AM

Charlie-Boo wrote:
> I have a variable X with an existing value which I would like to set
> to any value I want, via READ, potentially changing it.  I would like:
> 
> A. If no change to X is desired, then a short input results in X
> ending up with the same value it started with.
> B. The short input mentioned in A is independent of the value of X.
> C. We are able to change X to any string we want.
> D. There is only one execution of a READ.
> 
> I believe that every instance of this problem that I have seen
> violated C: we are not able to change X to the short input mentioned
> in A and B.
> 
> 1. Adhere to C.
> 2. Prove whether we can adhere to all 4.
> 
> C -
> 

How about: Set X=$$Read(X)
The function has an input and an output.
Depending on the conditions that determine whether X may change,
the function can return either the value that it obtains through
a Read command, or it can return the value that was passed as
the parameter of the function.

Proper use of New commands could ensure that the function has
no other side-effect than the desired one: it reads a value
from the current device.

Hope this helps,

Ed

-- 
**************************************************************
This electronic mail transmission contains confidential and/or
privileged information intended only for the person(s) named.
Any use, distribution, copying or disclosure by another person
is strictly prohibited.
**************************************************************
 




 7 Posts in Topic:
READ Puzzle
Charlie-Boo <shymathgu  2007-09-30 09:18:27 
Re: READ Puzzle
Ed de Moel <demoel@[EM  2007-10-01 04:51:04 
Re: READ Puzzle
Luiz Papa <papa.nospam  2007-10-01 09:12:55 
Re: READ Puzzle
Rob Tweed <rtweed@[EMA  2007-10-01 14:26:44 
Re: READ Puzzle
"Maury Pepper"   2007-10-02 00:03:12 
Re: READ Puzzle
APacas@[EMAIL PROTECTED]   2007-10-04 17:04:29 
Re: READ Puzzle
APacas@[EMAIL PROTECTED]   2007-10-04 17:17:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 0:17:33 CDT 2008.