if(this)
src << "lala!"
return
ID:179107
Feb 16 2002, 3:36 pm
|
|
In response to Super16
|
|
Sept that doesn't work...
|
In response to Foomer
|
|
Maybe this will work.
if(this) src<<"lalal" return |
In response to Super16
|
|
Maybies aren't what I'm looking for :oP
|
In response to Cinnom
|
|
";" isn't in the reference anywhere, but it works, so okay!
|
In response to Foomer
|
|
Wonderful! I just turned a hidious 65-line proc into a beautiful 35 line one!
|
In response to Foomer
|
|
Foomer wrote:
Wonderful! I just turned a hidious 65-line proc into a beautiful 35 line one! Is there some sort of line economy you are worrying about? :) You can merge just about anything into fewer line numbers. It's making it easy to read that is the hard part. Given, in a simple case like the one you gave, it should be easy enough to read anyway. However, getting rid nice visual aids like indentation may not be a good idea in general. |
In response to ACWraith
|
|
Depends on your code. I'd rather have:
if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return if(!isobj(what)) src << "Get what?"; return than if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return if(!isobj(what)) src << "Get what?" return Although, as a side note, it was working, now it's not. Gotta figure out what I goofed somewhere along the line. |
You could do this,
if(this)
src<<"lala" return
eheheh