On Mon, Jun 17, 2002 at 06:34:33PM +0100, adam beecher wrote:
> exception handling
If something bad happens, you throw an exception. You tell an exception
handler what to do with it. Example: your bank account must be in
credit, but you try to buy something that would exceed the amount of
money in your account. The program could be told that it has to handle
the "not enough money" exception by asking for the cash instead, if that
fails just to tell you to go away. (try/catch/finally in Java - you can
also just say that a class will throw an exception and let the calling
class deal with it - don't know if that's the case with PHP.)
If you have a reference to a variable (ie, don't know the name, but
someone has pointed you at it) you can get at the contents by
dereferencing. Passing references is more efficient in some languages.
Can't help you there, I'm afraid.
Russell Matbouli |
russell at futureless.org | I am Jack's complete lack of surprise
PGP KeyID: 0x3CA84CF4 |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/webdev/attachments/20020618/d92d5907/attachment.pgp
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!