Re: [Plplot-devel] Redacted dimension arguments

2016-01-20 Thread James Tappin
On 20 January 2016 at 08:47, Jerry wrote: > > On Jan 19, 2016, at 5:32 AM, Phil Rosenberg > wrote: > > > I'm perhaps less keen on the idea of using the minimum dimension. > > Passing unequal sized arrays is clearly and error and so I think we > > should flag it is such is the loudest way possibl

Re: [Plplot-devel] Redacted dimension arguments

2016-01-20 Thread Jerry
On Jan 19, 2016, at 5:32 AM, Phil Rosenberg wrote: > I'm perhaps less keen on the idea of using the minimum dimension. > Passing unequal sized arrays is clearly and error and so I think we > should flag it is such is the loudest way possible so the user can fix > it. I agree with Phil. Jerry

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Alan W. Irwin
On 2016-01-19 13:07- Phil Rosenberg wrote: > Oh and a final point. We should think carefully before removing the > forms where we pass in a raw pointer and a number of elements. My own feeling is the advantages of full-featured arrays outweigh the simplicity (but also dangers) of C-style arra

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Alan W. Irwin
On 2016-01-19 12:32- Phil Rosenberg wrote: > I'm perhaps less keen on the idea of using the minimum dimension. > Passing unequal sized arrays is clearly and error and so I think we > should flag it is such is the loudest way possible so the user can fix > it. I think the times when I have ofte

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Phil Rosenberg
types and classes containing only >> POD with no user defined destructor and some other limits. These can I >> think be safely passed into and out of a dll because they are pretty >> much like C structs with methods. stl containers including std::vector >> are not POD. >&g

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Phil Rosenberg
on't know what your thoughts are there Alan? > > Phil > > > On 19 January 2016 at 07:50, Arjen Markus wrote: >> Hi Alan, >> >> >> >>> -Original Message- >>> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] >>>

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Phil Rosenberg
te: > Hi Alan, > > > >> -Original Message- >> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] >> Sent: Tuesday, January 19, 2016 4:47 AM >> To: PLplot development list >> Subject: [Plplot-devel] Redacted dimension arguments >> …, I came up wit

Re: [Plplot-devel] Redacted dimension arguments

2016-01-19 Thread Alan W. Irwin
On 2016-01-19 07:50- Arjen Markus wrote: > Hi Alan, > > > >> -Original Message- >> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] >> Sent: Tuesday, January 19, 2016 4:47 AM >> To: PLplot development list >> Subject: [Plplot-devel] Reda

Re: [Plplot-devel] Redacted dimension arguments

2016-01-18 Thread Arjen Markus
Hi Alan, > -Original Message- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Tuesday, January 19, 2016 4:47 AM > To: PLplot development list > Subject: [Plplot-devel] Redacted dimension arguments > ..., I came up with the following cunning plan &

[Plplot-devel] Redacted dimension arguments

2016-01-18 Thread Alan W. Irwin
@Phil (and other C++ enthusiasts here): There is a question for you at the end about redacted dimension arguments for the C++ case. @Everybody: Normally for higher-level languages that treat arrays as first-class objects (i.e., _all_ the computer languages we support other than C, Tcl, and [stra