Re: Bug in 4.0.5? EUI, no warning for unused procedures/functions

new topic     » goto parent     » topic index » view thread      » older message » newer message
SDPringle said...
petelomax said...
    sprintf("%d",{public2}) 

will, btw, achieve diddly squat. It will create a string (such as "9") and then just throw it away, without displaying it or anything.

Pete

Yes, in the pre-4.0 days that would be an error. It's a design decision that was made. I don't like it either but it's not a bug.

Shawn

I preferred using a tilde to mark it, to avoid having this happen by accident and also as a visual hook to make it more obvious that there was a return value that would be ignored.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu