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: Mumps varia...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 16 Topic 952 of 990
Post > Topic >>

Re: Mumps variables

by Duke Normandin <dukeofperl@[EMAIL PROTECTED] > Apr 18, 2008 at 02:31 AM

On 2008-04-17, Maury Pepper <mpepper_scram_spam@[EMAIL PROTECTED]
> wrote:
>
> "Duke Normandin" <dukeofperl@[EMAIL PROTECTED]
> wrote in message 
> news:0OzNj.681$n63.637@[EMAIL PROTECTED]
>>
>> Then how does one differentiate between a local and global variables;
>> and local and global variable arrays? I see that global arrays have the
>> ^ prefix. Do global  (scalar) variables have the ^ prefix as well. If
>> yes, how can I tell what I'm dealing with -- a global variable or a
>> global array?
>> -- 
>> Duke Normandin
>
>
> Here is a definition from The Annotated M[UMPS] Standard 
> (http://71.174.62.16/Demo/AnnoStd)
> 4.2 array: M arrays, unlike those of most other computer languages, are 
> trees of unlimited depth and breadth. Every node may optionally contain
a 
> value and may also have zero or more descendant nodes. The name of a 
> subscripted variable refers to the root, and the nth subscript refers to
a 
> node on the nth level. Arrays vary in size as their nodes are set and 
> killed. See scalar, subscript.
>
> Since there are no variable declarations, one could simply say that an
array 
> is a variable with subscripts. Note that the definition says that arrays
are 
> trees. So, which are they -- arrays or trees?  Well, they are actually
trees 
> which are referenced as if they were arrays, but since they are trees,
they 
> behave differently than arrays.

I'm going to have to study the above a bit more ;))

> You can tell if a variable is subscripted by using the $DEFINE
(abbreviated 
> $D) function. For example, if $D(X) returns 1, then variable X has a
defined 
> value but no pointer to a descendant.node -- ie, it is currently a
scalar.

Thanks for the pointer! However are you implying that a scaler variable
can be
morphed into an array?


> You asked about MUMPS versions. If you want to climb inside and play
with 
> the source code, MUMPS V1 is fine, and it is pretty close to standard
Mumps. 
                   ^^^^^^^^
Do you mean Ray Newman's incarnation of Mumps?

> GT.M is much closer to a full standard Mumps and is an industrial
strength 
> commercial product and is sup****ted. It just happens to be open source
on 
> certain platforms. Kevin OKane's Mumps is far from standard but has many

> interesting features not found in generic Mumps.  Cache 

Close enough I guess. Have to keep it in mind.



-- 
Duke Normandin
 




 16 Posts in Topic:
Mumps variables
Duke Normandin <dukeof  2008-04-17 00:24:34 
Re: Mumps variables
Jeffrey Williams <jeff  2008-04-17 02:23:45 
Re: Mumps variables
Duke Normandin <dukeof  2008-04-17 03:50:20 
Re: Mumps variables
"Maury Pepper"   2008-04-17 00:56:09 
Re: Mumps variables
Duke Normandin <dukeof  2008-04-18 02:31:53 
Re: Mumps variables
"Maury Pepper"   2008-04-17 23:12:26 
Re: Mumps variables
Duke Normandin <dukeof  2008-04-18 23:18:36 
Re: Mumps variables
"K.S. Bhaskar"   2008-04-17 08:34:29 
Re: Mumps variables
Rob Tweed <rtweed@[EMA  2008-04-17 09:18:46 
Re: Mumps variables
Duke Normandin <dukeof  2008-04-18 00:21:01 
Re: Mumps variables
Rob Tweed <rtweed@[EMA  2008-04-18 08:32:12 
Re: Mumps variables
=?ISO-8859-1?Q?S=E9bastie  2008-04-17 23:53:23 
Re: Mumps variables
Rob Tweed <rtweed@[EMA  2008-04-18 08:36:51 
Re: Mumps variables
=?ISO-8859-1?Q?S=E9bastie  2008-04-29 08:07:59 
Re: Mumps variables
Rob Tweed <rtweed@[EMA  2008-04-29 17:49:26 
Re: Mumps variables
=?ISO-8859-1?Q?S=E9bastie  2008-04-30 00:34:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue Jul 22 22:40:00 CDT 2008.