[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34765] can't index scalar in anonymous functi
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #34765] can't index scalar in anonymous functions |
Date: |
Wed, 14 Mar 2012 20:26:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120201 Iceweasel/3.5.16 (like Firefox/3.5.16) |
Follow-up Comment #3, bug #34765 (project octave):
Hi
on 3.6.1 this still occurs for scalars. While the code on the second comment
now runs well, the one on the first does not.
octave> k = 1; in = 0; foo = @(x) in(x); foo (k);
error: can't perform indexing operations for scalar type
However, this runs fine:
in = 0; in(1)
Carnë
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34765>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34765] can't index scalar in anonymous functions,
Carnë Draug <=