Reply to post: Re: Functions returning multiple values.

Mads Torgersen and Dustin Campbell on the future of C#

Timmy B

Re: Functions returning multiple values.

"Functions returning multiple values ?!? Can somebody just kill me now?.... "

Indeed. Why not have the function return a struct or class instance. I don't get why you would want two variables out like this. I suppose if you really wanted to push it you could argue a very minor memory benefit and speed difference. But if you're going that route lets forget OOP entirely.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon