bugKimwitu++ - Bugs: bug #2328, kc prohibits definition of...

 
 

bug #2328: kc prohibits definition of functions with operator names

Submitter:  Martin v. Loewis <loewis>
Submitted:  Mon 20 Jan 2003 10:13:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Confirmed
Assigned to:  piefel Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Jan 2003 10:13:31 PM UTC, comment #3: 

Fri, 05 Jul 2002 09:25:05 GMT
kc does not need to check the arguments; that will be done in C++.

Martin v. Loewis <loewis>
Group administrator
Mon 20 Jan 2003 10:13:28 PM UTC, comment #2: 

Fri, 05 Jul 2002 09:19:14 GMT
If yes: Do you want a check for the arguments, or should that be left to the cppc?

Michael Piefel <piefel>
Group administrator
Mon 20 Jan 2003 10:13:26 PM UTC, comment #1: 

piefel Fri, 05 Jul 2002 09:18:05 GMT assigned_to 100

Anonymous
Mon 20 Jan 2003 10:13:22 PM UTC, original submission:  

Original-Id: 212
Date: Fri, 05 Jul 2002 09:13:37 GMT
kc++ rejects

foo: Foo(int);

foo
Foo(char *s){
  return Foo(atoi(s));
}

with the message

error at a.k:4: illegal redefinition of  operator as function Foo (introduced at a.k:1)

This is undesirable; in C++, it is reasonable to overload functions.

Martin v. Loewis <loewis>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by piefel (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-29 piefel StatusNone Confirmed
    2003-01-20 piefel Assigned toNone None

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code