octave-patch-tracker
[Top][All Lists]
Advanced

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

[Octave-patch-tracker] [patch #7652] compatibility with nargoutchk


From: Carnë Draug
Subject: [Octave-patch-tracker] [patch #7652] compatibility with nargoutchk
Date: Mon, 31 Oct 2011 00:56:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.22) Gecko/20110905 Ubuntu/10.04 (lucid) Firefox/3.6.22

URL:
  <http://savannah.gnu.org/patch/?7652>

                 Summary: compatibility with nargoutchk
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Mon 31 Oct 2011 12:56:04 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi!

matlab has completely changed the syntax of the nargoutchk function. It used
to return a struct with the error message if the number of arguments was
incorrect (like nargchk which matlab has deprecated). Now it actually returns
an error (like matlab's new narginchk).

I attempted to keep compatibility with the old code so it's now checking
nargin and nargout to make an educated guess at what syntax the caller is
expecting. If you're planning on removing the old syntax as well, maybe it
could also give a warning if the old syntax is being used.

Anyway, hope it's useful to someone.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 31 Oct 2011 12:56:04 AM GMT  Name: nargoutchk.diff  Size: 5kB   By:
carandraug

<http://savannah.gnu.org/patch/download.php?file_id=24252>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7652>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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