octave-maintainers
[Top][All Lists]
Advanced

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

Re: Undocumented Function List


From: Judd Storrs
Subject: Re: Undocumented Function List
Date: Sat, 18 Dec 2010 20:16:51 -0500

On Fri, Dec 17, 2010 at 11:02 PM, John W. Eaton <address@hidden> wrote:
> On 17-Dec-2010, Judd Storrs wrote:
>
> | One other thing I was wondering while looking at this is do the prefix
> | and postfix increment and decrement operators (++, --) also have
> | corresponding functions?
>
> How would you write a fuction for the postfix ++ operator in Octave?
>
>  function r = postincrement (x)
>    r = x;
>    ## now what?
>  endfunction

I guess in the back of my mind I was thinking that maybe someone
writing a class could want to override them if they were creating
something like an iterator or managed data object that needed to be
available as a drop in replacement for builtin types. I used to
understand that the parser silently translated these as syntactic
sugar, but now that these have been optimized, I wasn't completely
certain if that changed. I was primarily making sure the list of
functions for updating the manual was complete.


--judd



reply via email to

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