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

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

[Octave-bug-tracker] [bug #47919] Error messages for mismatched struct f


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47919] Error messages for mismatched struct fields is not informative
Date: Fri, 13 May 2016 23:51:27 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

URL:
  <http://savannah.gnu.org/bugs/?47919>

                 Summary: Error messages for mismatched struct fields is not
informative
                 Project: GNU Octave
            Submitted by: lachlan
            Submitted on: Fri 13 May 2016 11:51:24 PM GMT
                Category: Interpreter
                Severity: 1 - Wish
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: Lachlan
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I'm not sure if this is worth the complexity, but when I got the error
"orderfields: structs must have same fields up to order", I thought that it
may be useful to indicate which fields were different.

The patch is less trivial than I expected, and probably not worth the
maintenance burden, but since I have written it, I'll post it here once I have
the bug number.  Currently, if only one field is in one struct but not the
other, it prints the name of that field; otherwise it prints the number of
such fields.  There are many more verbose possibilities (like listing all
shared/LHS-only/RHS-only fields if that number is below a threshold), and I'm
happy to implement something different if people think it is worth it, but I'm
afraid of the tail wagging the dog.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47919>

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




reply via email to

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