Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters > C/C++

Reply
 
Thread Tools

operator overloading makes my class look ugly ?
Old 13.01.2005, 11:30   #1
Младенец
 
Join Date: 01 2005
Location: pakistan
Age: 40
Posts: 1
Rep Power: 0
Default operator overloading makes my class look ugly ?

But operator overloading makes my class look ugly; isn't it supposed to make my code clearer? Do you agree with this statement?'

Old 13.01.2005, 12:45   #2
the mochinger
 
Hans Andersen's Avatar
 
Join Date: 02 2002
Location: Paranoid Android, @10:50
Age: 46
Posts: 1,894
Rep Power: 5
Default

class code - yes, somewhat
the remaining code - makes beautiful, well, at least easier to read

gl
__________________
The flower that blooms in adversity is the most rare and beautiful of all.

Old 13.01.2005, 12:51   #3
Грустно...
 
Agregat's Avatar
 
Join Date: 08 2002
Location: Там, где всегда идут дожди
Age: 43
Posts: 21,717
Rep Power: 9
Default

it does not make class look ugly.
__________________
http://аvitya.livejournal.com
Хотели, как лучше, а получилось даже хуже...
Лозунг шахматиста: На каждый шах - ответим матом!

Old 24.01.2005, 16:50   #4
Дошкольник
 
Join Date: 08 2004
Location: Oxford
Age: 46
Posts: 141
Rep Power: 0
Default

I think it makes it look cute and elegant, still confusing, that's why it's abolished in Java...

Old 24.01.2005, 23:18   #5
Академик
 
W_z_rd's Avatar
 
Join Date: 08 2002
Location: Yerevan, Armenia
Age: 53
Posts: 4,854
Rep Power: 5
Default

Never did on me....
__________________
Женщин не надо понимать, их надо любить!

Old 25.01.2005, 06:51   #6
the mochinger
 
Hans Andersen's Avatar
 
Join Date: 02 2002
Location: Paranoid Android, @10:50
Age: 46
Posts: 1,894
Rep Power: 5
Default

Quote:
Originally Posted by W_z_rd
Never did on me....
strange... lack of experience?... naah, i no think so. so why?
__________________
The flower that blooms in adversity is the most rare and beautiful of all.

Old 25.01.2005, 10:52   #7
Академик
 
W_z_rd's Avatar
 
Join Date: 08 2002
Location: Yerevan, Armenia
Age: 53
Posts: 4,854
Rep Power: 5
Default

How do I now ? Give an example.

P.S. "i no think so" -> "I don't think so". Do you intentionally distort English ?
__________________
Женщин не надо понимать, их надо любить!
Reply




Реклама:
реклама
Buy text link .

All times are GMT. The time now is 06:46.
Top

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.