Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: LEX Question Message-ID: <1989Feb23.164129.8672@utzoo.uucp> Organization: U of Toronto Zoology References: <32240@auc.UUCP> <9580001@hpcuhb.HP.COM> <1989Feb15.200741.15963@utzoo.uucp> <412@chem.ucsd.EDU> Date: Thu, 23 Feb 89 16:41:29 GMT In article <412@chem.ucsd.EDU> tps@chem.ucsd.edu (Tom Stockfisch) writes: >>Be careful: this is not a documented feature, at least not in all versions >>of lex, and therefore should not be relied on too heavily in portable code. > >Have you run across a version of lex that does NOT have yyin/yyout? >I've always thought changing yyin was much more portable than re-defining >input(). Re-defining "input" is in the documentation as the way to alter input; any version of lex that follows the manual (and hence deserves to be called "lex") will permit it and have it work as documented. "yyin" is not documented at all -- it is an accident of the original implementation -- and hence may change without warning between versions. -- The Earth is our mother; | Henry Spencer at U of Toronto Zoology our nine months are up. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu