Changeset 2354


Ignore:
Timestamp:
Feb 9, 2007, 5:03:51 PM (14 years ago)
Author:
yura
Message:
  • static method concat(Expr, Expr) must be used instead of constructor Expr(Expr, Expr).
Location:
to-imperative/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/compiler/rfp_asail_jbc.rf

    r2353 r2354  
    417417  t.term = <Term-Ref-To-JBC t.term>;
    418418  t.term1 t.term2 =
    419     <MVvisitTypeInsn <MV> &NEW "org/refal/plus/Expr">,
    420     <MVvisitInsn <MV> &DUP>,
    421419    <Term-Ref-To-JBC t.term1>,
    422420    <Term-Ref-To-JBC t.term2>,
    423     <MVvisitMethodInsn <MV> &INVOKESPECIAL "org/refal/plus/Expr" "<init>" "(Lorg/refal/plus/Expr;Lorg/refal/plus/Expr;)V">;
     421    <MVvisitMethodInsn <MV> &INVOKESTATIC "org/refal/plus/Expr" "concat" "(Lorg/refal/plus/Expr;Lorg/refal/plus/Expr;)Lorg/refal/plus/Expr;">;
    424422  e.expr =
    425423    <MVvisitLdcInsn <MV> <Integer <Length e.expr>>>,
  • to-imperative/trunk/java/org/refal/plus/Expr.java

    r2192 r2354  
    216216
    217217    /**
     218     * Concatenates two expressions.
     219     */
     220    public static Expr concat (Expr e1, Expr e2) {
     221        return new Expr(e1, e2);
     222    }
     223
     224     // TODO: remove concatenating constuctors!
     225     /**
    218226     * Concatenates two expressions.
    219227     */
Note: See TracChangeset for help on using the changeset viewer.