POV-Ray : Newsgroups : povray.programming : Native TAR archive support in POV : Re: Native TAR archive support in POV Server Time
29 Jul 2024 06:23:19 EDT (-0400)
  Re: Native TAR archive support in POV  
From: Nigel Stewart
Date: 14 Feb 1999 08:27:41
Message: <36c6cf4d.0@news.povray.org>
>There's a difference between "directory of the current file" and
>"current directory".

    Yes, that is exactly what I'm talking about.  POV currently
    has a policy that everything should be in the library include
    path, but if you have a filename collision, the resolution
    strategy is not well defined.  I think using

    #include "std/colors.inc"
    #include "foo/colors.inc"


    Is better than being careful to name files carefully to avoid
    collision. Files included from "std/colors.inc" should be
    taken from the "std" directory in preference to anywhere
    else.  This improves the prospect of proper modularisation
    of POV scenes and libraries.

    I don't think C works this way, but I think it is the way
    that POV-ray _should_ work... :-)

    In order of preference, POV searches the following
    directories for an included file:

    1.    The directory of the current file.
    2.    The current directory.
    3.    Each directory in the list of library directories.

    Which is the same policy as present, with (1) inserted.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.