Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!bellcore!texbell!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: File Requesters Keywords: REENTRANT FILE REQUESTERS Message-ID: <3795@sugar.hackercorp.com> Date: 8 May 89 03:02:54 GMT References: <6342@ardent.UUCP> <103440@sun.Eng.Sun.COM> Distribution: na Organization: Sugar Land Unix - Houston Lines: 17 In article <103440@sun.Eng.Sun.COM>, cmcmanis%pepper@Sun.COM (Chuck McManis) writes: > This is a very simple operation. And to be effective should stay simple. > FileLock = Request("Prompt", DirLock, Access_mode); Too complex. What if I want a file name? What if I want to open it later? How about handling overwritten/nonexistent files? Status = Request(Title, DirectoryLock, Buffer) Buffer should be initialised to the default file name, so you can provide a hint. Also, it's sometimes useful to provide a pattern: Status = Request(Title, Pattern, DirectoryLock, Buffer); -- Peter "Have you hugged your wolf today" da Silva `-_-' ...texbell!sugar!peter, or peter@sugar.hackercorp.com 'U`