#253 Odd capitalization behavior

closed
nobody
None
2
2005-02-23
2003-03-12
Cliff Yapp
No

when changing the in/outchar variables, the
capitalization doesn't do quite what is expected: for
example. below, In comes out IN but Out comes out Out.

(this is under clisp 2.30)
Maxima 5.9.0 http://maxima.sourceforge.net
Distributed under the GNU Public License. See the file
COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function
bug_report()
provides bug reporting information.
(C1) inchar: In;
(D1) IN
(IN1) ls;
(D1) ls
(IN2) outchar: Out;
(Out2) Out
(IN3) ls;
(Out3) ls

Discussion

  • Martin Rubey

    Martin Rubey - 2003-03-12

    Logged In: YES
    user_id=651552

    This is because $IN is used for the $FOR facility... (which makes it clear that in() is
    not a good choice for retrieving the input...

    Martin

     
  • Cliff Yapp

    Cliff Yapp - 2003-03-12

    Logged In: YES
    user_id=11463

    Hmm. OK. Well, my next suggestion would be InLine and
    OutLine (INPUT is apparently used somewhere too - it doesn't
    work as lower case.) InLine and OutLine are clear:

    (C1) inchar : InLine;
    (D1) InLine
    (InLine1) outchar : OutLine;
    (OutLine1) OutLine
    (InLine2) kill(all);
    (OutLine0) DONE
    (InLine1) integrate(sin(x),x);
    (OutLine1) - COS(x)
    (InLine2)

     
  • Cliff Yapp

    Cliff Yapp - 2003-03-12

    Logged In: YES
    user_id=11463

    Or, if InLine and OutLine are too long, how about just InL
    and OutL ?

    (InL1) integrate(sin(x),x);
    (OutL1) - COS(x)
    (InL2) x^2;
    2
    (OutL2) x
    (InL3)

    Or maybe OtL if you want to keep the char count as low as
    possible.

     
  • Nobody/Anonymous

    Logged In: NO

    Observed similar behaviour in capitalization of results:
    (C42) diff(k*2*(60/c+20/b+b*c),c);
    60
    (D42)
    2 (b - --) k
    2
    C

    (note UPPER C in results instead of lower c input!)

     
  • Cliff Yapp

    Cliff Yapp - 2005-02-23

    Logged In: YES
    user_id=11463

    Went with setup now in cvs a while ago - this decision was
    made. Closing bug.

     
  • Cliff Yapp

    Cliff Yapp - 2005-02-23
    • status: open --> closed
     

Log in to post a comment.