|
-
Sep 21st, 2001, 11:20 AM
#1
Thread Starter
transcendental analytic
Type casting
Can i cast to a type which class contents i can't change?
Say I want to cast to RECT, which is defined elsewhere
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.
-
Sep 21st, 2001, 03:11 PM
#2
Give us'ns an example of what you mean? I dont understand (probably normal, though =).
Z.
-
Sep 21st, 2001, 03:22 PM
#3
Thread Starter
transcendental analytic
simple and plain =)
r2d x;
RECT y = (RECT)x;
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.
-
Sep 21st, 2001, 04:09 PM
#4
-
Sep 21st, 2001, 04:20 PM
#5
Monday Morning Lunatic
Just had an idea (after our earlier conversation). Try defining operator RECT().
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Sep 21st, 2001, 04:40 PM
#6
Thread Starter
transcendental analytic
You are the greatest parksie   
what am I saying damn you parksie, why didn't you come up with this earlier??!
You rox0r!
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
|