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

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

[Octave-patch-tracker] [patch #8760] Extend parser to allow underscore c


From: Rik
Subject: [Octave-patch-tracker] [patch #8760] Extend parser to allow underscore character in numbers
Date: Mon, 05 Oct 2015 21:10:59 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

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

                 Summary: Extend parser to allow underscore character in
numbers
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Mon 05 Oct 2015 02:10:58 PM PDT
                Category: None
                Priority: 5 - Normal
                  Status: Ready For Test
                 Privacy: Public
             Assigned to: rik5
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Quoting from the NEWS file entry I wrote.


 ** The parser has been extended to accept, but ignore, underscore characters
    in numbers.  This facilitates writing more legible code by using '_' as
    a thousands separator or to group nibbles into bytes in hex constants.
    Examples: 1_000_000 == 1e6 or 0xDE_AD_BE_EF


This looks like a fun addition to Octave which further distinguishes it from
Matlab.  I ran 'make check' and all tests pass so nothing appears to have been
broken by this added functionality.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 05 Oct 2015 02:10:58 PM PDT  Name: _number.cset  Size: 4kB   By:
rik5

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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