octave-maintainers
[Top][All Lists]
Advanced

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

Re: Removal of the builtin set-command in Octave.


From: Paul Kienzle
Subject: Re: Removal of the builtin set-command in Octave.
Date: Thu, 15 Jul 2004 18:59:42 -0400

Ole,

Try the following with octave-forge-2004-07-07

dispatch('set','oplot_set','any')
dispatch('hold','oplot_hold','any')
...

- Paul

On Jul 15, 2004, at 6:09 PM, Ole Jacob Hagen wrote:

Hi.

I am wondering if these lines could be removed from pt-plot.cc:

DEFCMD (set, args, nargout,
  "-*- texinfo -*-\n\
This command is has been replaced by @code{gset}.")
{
  warning ("set is obsolete -- use gset instead");
  return Fgset (args, nargout);
}

We are implementing a Handle Graphics functionality to Octave, so the existence of the builtin set-command is very unfortunate.
I am sending a patch-file, which uncomments these 7 lines of code.

How can I override the other functions like hold, ishold in Octave? I have octave-forge installed.

Cheers,

Ole J. Hagen




Index: pt-plot.cc
===================================================================
RCS file: /cvs/octave/src/pt-plot.cc,v
retrieving revision 1.141
diff -r1.141 pt-plot.cc
1141,1147c1141,1147
< DEFCMD (set, args, nargout,
<   "-*- texinfo -*-\n\
< This command is has been replaced by @code{gset}.")
< {
<   warning ("set is obsolete -- use gset instead");
<   return Fgset (args, nargout);
< }
---
// DEFCMD (set, args, nargout,
//   "-*- texinfo -*-\n\
// This command is has been replaced by @code{gset}.")
// {
//   warning ("set is obsolete -- use gset instead");
//   return Fgset (args, nargout);
// }



reply via email to

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