Roman Haefeli wrote:
when writing a patch, i don't want to think about the dependencies of the abstractions i use. that is why i propose the following layout:
in my idea of an ideal [declare -std*] layout, it expands search pathes only locally to the patch and all its children (abstractions and abstractions of abstractions). the same goes for abstractions: search pathes are added for the instance itself and all children, but not for the parent patch nor other instances at the same level. search pathes added by the local [declare] should be checked _before_ the parent [declare] before the grandparent [declare] etc. 'relative' means always relative to the location of the file and not relative to file location of the most top parent patch (or anything else).
hello roman, I totally agree with you. that should be the default behaviour. But iirc the current behaviour is the opposite way. objects loaded in an abstraction expand their paths to the parent patch. maybe this is because they are loaded first? maybe it is not possible to have local namespaces at all (everything global?)? marius.