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

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

[Octave-bug-tracker] [bug #45945] Missing Matlab's special support for i


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #45945] Missing Matlab's special support for int64/uint64 integer literals
Date: Mon, 22 Aug 2016 22:35:23 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #21, bug #45945 (project octave):

Yeah, I don't think this is handled by special casing "int64" in the lexer. 
That would cause other trouble anyway because functions may be overloaded, as
you show.

I'm pretty sure the way to handle it is to store the int64 value and use it in
certain contexts.  Weirdly, that apparently only applies to scalar contexts.

This seems similar to the way that "x(idx) = []" deletes elements from X, but
"null = []; x(idx) = null" does not.  In Octave, we give "[]" special status
until an assignment happens.  We could do something similar for integer
literals.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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