Re: [U2] Passing dimensioned arrays

2012-07-27 Thread Wjhonson
ubject: Re: [U2] Passing dimensioned arrays Hi, > The line is simply ignored as if it were not even there. > If you make it bigger, then try to list past the end, the runtime blows up. > If you make it smaller, you can still address the end cells normally. > It's really as if the lin

Re: [U2] Passing dimensioned arrays

2012-07-27 Thread Martin Phillips
Hi, > The line is simply ignored as if it were not even there. > If you make it bigger, then try to list past the end, the runtime blows up. > If you make it smaller, you can still address the end cells normally. > It's really as if the line isn't present. Don't ask me why it works that > way, b

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Wjhonson
#x27;t ask me why it works that way, but hey. -Original Message- From: dennis bartlett To: U2 Users List Sent: Thu, Jul 26, 2012 5:40 pm Subject: Re: [U2] Passing dimensioned arrays If the new size was bigger, it would populate those cells that were sent, ie a (10) array sent would fill

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread dennis bartlett
If the new size was bigger, it would populate those cells that were sent, ie a (10) array sent would fill cells 1 - 10 of the (12) array Theoretically f the new size was smaller, it would fill the array then put the remaining ones into either the last or the zero cell depending on which flavour, b

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Bill Haskett
essage- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson Sent: 26 July 2012 17:23 To: u2-users@listserver.u2ug.org Subject: Re: [U2] Passing dimensioned arrays I was thinking along those same lines Brian But what it actually does is c

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Brian Leach
-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson Sent: 26 July 2012 17:23 To: u2-users@listserver.u2ug.org Subject: Re: [U2] Passing dimensioned arrays I was thinking along those same lines Brian But what it actually does is completely ignore the line as if it were not pr

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Wjhonson
ed it, tested my new functionality, referring to a high position element, and it works perfectly. So. Another, page in the "Weird Things You Find" booklet. -Original Message- From: Martin Phillips To: 'U2 Users List' Sent: Thu, Jul 26, 2012 2:44 am Subject: Re: [U2] Passing

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Wjhonson
- From: Brian Leach To: 'U2 Users List' Sent: Thu, Jul 26, 2012 2:03 am Subject: Re: [U2] Passing dimensioned arrays Well, in an INFORMATION flavor dimensioned arrays are supposed to be dynamically resizable, which can sometimes be useful if you are using them for temporary storage (buil

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Martin Phillips
Hi, > Well, in an INFORMATION flavor dimensioned arrays are supposed to be > dynamically resizable The problem described by this thread is an oddity forced on us by the syntax/semantics of matrices passed as arguments. If you define a subroutine as, for example, SUBROUTINE MYSUB(MAT X) this

Re: [U2] Passing dimensioned arrays

2012-07-26 Thread Brian Leach
o: u2-users@listserver.u2ug.org Subject: [U2] Passing dimensioned arrays I'm on Universe 10.2.3 in Information flavor and was surprised by something. Admittedly I don't think I've actually come across this before, but it seems like whoever wrote this, didn't understand how the s

Re: [U2] Passing dimensioned arrays

2012-07-25 Thread Tony Gravagno
The behaviour has to be platform-specific, perhaps even version specific, and I wouldn't trust code that re-dims in a subroutine. With that, I won't guess what it does today because it could be different on a lot of systems here, and different in the next release. I don't mean to evade the challeng

Re: [U2] Passing dimensioned arrays

2012-07-25 Thread John Lorentz
On Wed, Jul 25, 2012 at 3:28 PM, Wjhonson wrote: > > I'm on Universe 10.2.3 in Information flavor and was surprised by > something. > Admittedly I don't think I've actually come across this before, but it > seems like whoever wrote this, didn't understand how the system used it > either. > > If y

[U2] Passing dimensioned arrays

2012-07-25 Thread Wjhonson
I'm on Universe 10.2.3 in Information flavor and was surprised by something. Admittedly I don't think I've actually come across this before, but it seems like whoever wrote this, didn't understand how the system used it either. If you dimensioned an array and then call a subroutine passing that