view test/bug-59704/bug59704_2.m @ 31210:9ad55d2e1bbf stable

Make sure we don't pass short 8.3 path to latex on Windows (bug #62779). * latex-text-renderer.cc (latex_renderer::write_tex_file): On Windows, use canonicalized path of temporary directory.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sun, 28 Aug 2022 22:44:49 +0200
parents 09f99fe5190c
children
line wrap: on
line source

classdef bug59704_2 < handle

  properties
    data_
  endproperties

  methods

    function obj = bug59704_2 ()
      obj.data_ = 1001:1005;
    endfunction

    function r = subsref (obj, S)
      ## Transform: obj(index) --> obj.data_(index)
      if strcmp (S(1).type, '()')
        r = subsref (obj.data_, S);
      else
        r = builtin('subsref', obj, S);
      endif
    endfunction

    function obj = subsasgn (obj, S, B)
      ## Transform: obj(index) --> obj.data_(index)
      if strcmp (S(1).type, '()')
        obj.data_ = subsasgn (obj.data_, S, B);
      else
        obj = builtin ('subsasgn', obj, S, B);
      endif
    endfunction

  endmethods

endclassdef