Re: silly compiler
Posted in 1994
In article <2nf7ut$ad7@emory.mathcs.emory.edu> you write: } } Why does the 4gl compiler miss all of sorts of valid things yet blow out } on the trivial? Silly compiler - tell me when I DON'T know what I'm doing. } I want you to be psychic! } } main } call b } call a } } function a } } foreach curs } | } | cursor has not yet been declared. } | } } function b } } declare curs } The compiler processes 4GL code from top to bottom. Although at runtime b() is called before a(), at compile time a() is processed first and "curs" has not been declared because it's declaration occurs in b() further down in the code. DAS -- Dave Snyder @ Snide Computer Services - Folcroft, PA Current Release is db4glgen-3.17 UUCP: ..!uunet!das13!dave INTERNET: dave@das13.snide.com