Re: Over exaggerated negative post on reddit programming

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
euphoric said...
jimcbrown said...

Actually, the object() function allows you to test is a variable is unset...

I cannot imagine a case where this would be necessary. Are there examples of the utility of this functionality?

I can't think of any.

One comes to mind. In EuGTK, I can load a single library (for Linux) as an atom or a whole slew of libraries (Windows) as a sequence of atoms, so I declare LIBS as an object, then test:

  if not object(LIBS) then 
     crash...no libraries found. 

Not that there aren't other ways to do this, but it was easy.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu