octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New function proposal


From: Paul Kienzle
Subject: Re: New function proposal
Date: Tue, 13 Feb 2007 19:54:40 -0500


On Feb 13, 2007, at 1:08 PM, John W. Eaton wrote:

We could also return two separate values, but a
vector is more like the Unix pipe system call.

One of my favourite features of Tcl is that added
features are Tcl-like rather than faithfully
reflecting the constraints of C into the scripting
environment.  For example, much of the complexity
of using sockets disappears and creating/using
web services is a breeze.

For popen2 I think

        [in, out] = popen2('echo');
   fprintf(in,"hello");
   response = fgets(out);
   disp response

is more readable than

   p = popen2('echo');
   fprintf(p(1),"hello");
   response = fgets(p(2));
   disp response

so I would prefer the former interface.

        - Paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]