. .

Discuss anything ZDoom-related that doesn't fall into one of the other categories.

. .

Postby adx » Tue Oct 21, 2003 2:30 am

eevee wrote

1. Using break or continue in the middle of a loop or return in the middle of a function is bad programming practice.
2. There are two differences between classes and structs: classes are private by default whereas structs are public by default, and you can't have methods in a struct.

using return in the middle of the function isn't bad programming practice especially in RECURSIVE functions
function(int var){
return 1; //return in the middle of a function
else function(var-1);
User avatar
No Custom Title.
Joined: 01 Aug 2003

Postby HotWax » Tue Oct 21, 2003 3:13 am

Use the postreply button, Luke!
User avatar
Do what you must, and pay the price later.
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests