octave-maintainers
[Top][All Lists]
Advanced

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

Removal of the builtin set-command in Octave.


From: Ole Jacob Hagen
Subject: Removal of the builtin set-command in Octave.
Date: Fri, 16 Jul 2004 00:09:52 +0200
User-agent: Mozilla Thunderbird 0.5 (X11/20040319)

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]