Oberon Community Platform Forum
December 12, 2019, 09:56:19 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem with operators  (Read 2566 times)
Alexey
Newbie
*
Posts: 27


« on: October 08, 2008, 08:03:49 AM »

Hi guys! The compiler says "multiply defined operator".

TYPE

   SparseMatrix* = OBJECT
   
      PROCEDURE "[]"*(i, j: LONGINT; x: REAL);
      BEGIN
         
      END "[]";
      
      PROCEDURE "[]"*(i, j: LONGINT; x: LONGREAL);
      BEGIN
         
      END "[]";
      
      PROCEDURE "[]"*(i, j: LONGINT): REAL;
      BEGIN
         
      END "[]";
      
      PROCEDURE "[]"*(i, j: LONGINT): LONGREAL;
      BEGIN
         
      END "[]";
      
   END SparseMatrix;   

   PROCEDURE "*"(A: SparseMatrix; CONST x: ARRAY
  • OF REAL): ARRAY
  • OF REAL;
   BEGIN
      
   END "*";
   
   PROCEDURE "*"(A: SparseMatrix; CONST x: ARRAY
  • OF LONGREAL): ARRAY
  • OF LONGREAL;
   BEGIN
      
   END "*";
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!