They should have a compiler option: "Allow Withs", and it's unchecked by default. The problem is if you have a lot of code that has Withs in there. I've been trying to remove them as I go along.
Many people tend to look at programming styles and languages like religions: if you belong to one, you cannot belong to others. But this analogy is another fallacy.
:-D - suicide prevention?
ReplyDeleteYou might join a meeting of the AWUG (Anonymous With User Group) in your town.
ReplyDeleteshould that not be with.support group?
ReplyDelete/with
ReplyDeleteA simple "uses" is as dangerous as a "with"
ReplyDeleteyup, as in if you are using a variable that you had not declared but is in a unit in your uses :)
ReplyDeletei have fallen into that trap myself
Hi all, my name is Ondrej and I've recently used a nested with statement. :-)
ReplyDeleteThis is like an AA meeting. LOL
ReplyDeleteDid you FreeAndNil the object referenced with the WITH statement?
ReplyDeleteYes, there is a support group. Nick Hodges runs it.
ReplyDeleteWe can help, Brandon. You just have to take the first step and admit you have a problem.
ReplyDeleteI don't have a problem. I can quit using with at any time.
ReplyDeleteI am adding new methods to existing interfaces (not COM).
ReplyDeleteAnti-patterns could be so tempting.
ReplyDeletei have a tendency to declare nested functions inside nested procedures inside nested functions... on inherited classes...
ReplyDeleteI just used global variables and goto statements. any support group for that? :sniffs:
ReplyDeleteThey should have a compiler option: "Allow Withs", and it's unchecked by default. The problem is if you have a lot of code that has Withs in there. I've been trying to remove them as I go along.
ReplyDeleteOh, what a tangled web we weave
ReplyDeleteWhen with we practice to conceive!
Many people tend to look at programming styles and languages like religions: if you belong to one, you cannot belong to others. But this analogy is another fallacy.
ReplyDelete—Niklaus Wirth
Ilya S Love it!
ReplyDeleteI'm looking for a refactoring tool that will automatically add with statements. You know, just to remove some bytes from my source files.
ReplyDeleteLet The International Obfuscated Pascal Code Contest begin! #iopcc
ReplyDelete