|
-
Jun 29th, 2003, 02:43 PM
#35
yay gay
you're making some kind of confusion..if i understood u right u mean that hellswraith is wrong because returning null is returning another type right? returning null is just setting the return as a type without nothing inside, while if u just doesnt return anything (if i am not in mistake) you're returning void and that is really a big mistake
see this in this point of view: if you have an object as return type you can return ANY KIND of type because they all inherit from object..although they dont inherit from null you can in ALL kinds of type return null and no error will be thrown(sorry if i am saying some kind of stupidity but its the way i think you'll better understand )
if it isnt what u meant then explain because i didnt get the point? 
\m/  \m/
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
|