RE: [OT[ How do I ........?
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: How do I ? Since you get bitten in C by missing an equals (it's quite easily to miss it visually), I got into the habit of putting the null first. Belt and suspenders? Why the heck are we discussing things like this on a mailing list for an app server!? Programming class 0.9 ... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT[ How do I ........?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: How do I ? Since you get bitten in C by missing an equals (it's quite easily to miss it visually), I got into the habit of putting the null first. Belt and suspenders? It's just a habit, okay!? :P - -chris Why the heck are we discussing things like this on a mailing list for an app server!? Programming class 0.9 ... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFW4Fu9CaO5/Lv0PARAuZAAJoC2nJCKQZlyOnD4FQpU4/x/np3WgCfXveo 15DilI+f87JJUeb1EGBPdUo= =tySa -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT[ How do I ........?
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: [OT[ How do I ? Belt and suspenders? It's just a habit, okay!? :P Not complaining; I think it's a clever and wholly appropriate thing to do. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT[ How do I ........?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: [OT[ How do I ? Belt and suspenders? It's just a habit, okay!? :P Not complaining; I think it's a clever and wholly appropriate thing to do. Oh, that was me feigning horror. Everyone looks at me funny when I put the terms the wrong way. It doesn't bother me. It makes me look war-torn or something. Or maybe just like an idiot who can't read his own code ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFW4dP9CaO5/Lv0PARAp82AKDA6Dyt44KRyFGv/o64///B7/23vACgoO3x zsS1Muo1p4vZ/tCP7dEleyc= =zbFu -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT[ How do I ........?
On 11/15/06, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: [OT[ How do I ? Belt and suspenders? It's just a habit, okay!? :P Not complaining; I think it's a clever and wholly appropriate thing to do. Oh, that was me feigning horror. Everyone looks at me funny when I put the terms the wrong way. It doesn't bother me. It makes me look war-torn or something. Or maybe just like an idiot who can't read his own code ;) as long as you don't parenthesise everything just for the fun of it, like in tomcats code, you shouldn't have fear, warrior. public String getAuthType() { return (this.authType); } being off topic, does someone know the source of this evil? :-) regards Leon - -chris - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT[ How do I ........?
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: [OT[ How do I ? as long as you don't parenthesise everything just for the fun of it, like in tomcats code, you shouldn't have fear, warrior. public String getAuthType() { return (this.authType); } being off topic, does someone know the source of this evil? :-) It's functional (pun intended). One of my pet peeves as well. Perhaps the originator thought return really was a function call? Or maybe an out of work Lisp programmer? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] How do I ........?
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: How do I ? This is one of those SS!=DS discussions which means that variables placed/alloc'ed on the stack are NOT the same as variables alloc'ed from heap so when using a variable which is alloced on the stack AND initialised to some known value (null) feel free to test that pre-allocated stack variable as with if(stack_variable == null) If you dont know how this variable is alloc'ed or you know that the variable is alloc'ed from heap use try / catch(NullPointerException npe) to do otherwise you're risking your webapp causing 'an unhandled exception' when referencing a unalloc'ed variable.. A continuing display of your ignorance and irrelevance. Sounds like you're confusing the issue with variable and field initialization. Variables in Java are always thread-local and within the scope of a method; their allocation is up to the particular JVM implementation and need not be materialized in memory at all. They also do not have any pre-defined initial values in lieu of an explicit initialization expression. Fields are associated with an object instance or class (if static); most JVMs do allocate objects from a heap, but again there's no spec requirement to do so. Static fields are also usually allocated from a heap, but not necessarily the same one as instances. By definition, fields have an initial value of zero, null, or false (depending on type), if not specified by an initialization expression. None of this has any bearing on whether or not it's valid to use a var == null expression, which, of course, is always an acceptable thing to do. The fact that you can't seem to do it speaks only to your programming skills, not anything in the Java language. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] How do I ........?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: [...] their allocation is up to the particular JVM implementation and need not be materialized in memory at all. This is a good point that I didn't mention. The description I have given indicates how Java will behave. For instance, all objects behave as if allocated on the heap, and all primitives (of which a reference is one... sort of) act as if they were allocated on the stack. JITs can basically do anything they want as long as they don't break these rules. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFW7Vu9CaO5/Lv0PARAv+0AJ0cLDn7a0PhVjlbrW6c0G1JsLxv6gCdGtOF eh5DQcihbfo390b1lJgQgmQ= =fhZe -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]