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

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

[Octave-bug-tracker] [bug #56544] [octave forge] (dataframe) error: The


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #56544] [octave forge] (dataframe) error: The output format qualifier "as" must be followed by a type
Date: Thu, 25 Jul 2019 06:16:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #3, bug #56544 (project octave):

The code:
https://sourceforge.net/p/octave/dataframe/ci/dataframe-1.2.0/tree/inst/@dataframe/subsref.m#l37


  if (strcmp (S(1).type, '.')) %# struct access
    indi = regexp (S(1).subs, 'as');
    if (~isempty (indi)) 
      if (length (S) < 2 || ~strcmp (S(2).type, '.'))
        error ('The output format qualifier "as" must be followed by a
type');
      end
      asked_output_type = 'array';
      asked_output_format = S(2).subs; S = S(3:end);
    else



If I change it to:


 if (strcmp (S(1).type, '.')) %# struct access
    if (strcmp (S(1).subs, 'as'))
      if (length (S) < 2 || ~strcmp (S(2).type, '.'))
        error ('The output format qualifier "as" must be followed by a
type');
      end
      asked_output_type = 'array';
      asked_output_format = S(2).subs; S = S(3:end);
    else


It stops doing it 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56544>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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