|
-
Dec 30th, 2001, 07:07 AM
#3
transcendental analytic
In fact it should be alpha& not alpha. As all the operators actually returns something you can construct expressions that does more than one assignment, for instance:
int a,b,c;
a=b=c=0;
instead of
a=0;
b=0;
c=0;
reason why you would need it to be a reference instead of a copy, is for those cases where you pass assigned values:
Dosomething(a=10);
It's nothing you absolutely have to do, it's just that it's more convenient if the operators act like they should
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|