Hi Russel, On 9/8/16, 10:28 AM, "Russel Winder" <[email protected]> wrote:
>On Thu, 2016-09-08 at 13:34 +0000, Ben Albrecht wrote: >> Hi Russel, >> >> Using the function 'sort' without a qualifier should work fine. This >> is a bug. We have identified the cause and have a fix underway. >> Thanks for reporting the behavior. >> > >OK, wilco. > >This does though raise the question of when is a function visible >without a use statement? i.e. which modules are automatically on the >lookup path? Good question. Officially, the list of modules that are automatically accessible to the user via unqualified access are the 'internals' [1] (aka built-in types and functions) and 'Assert', 'Math', and 'Types' modules from the standard modules [2]. All modules should be accessible via fully qualified access without a use statement (the answer to your question). However, two issues have recently come to our attention, that we are in the process of tackling: 1. Some modules are not found by default and thus can not be used with a fully qualified access and no use statement. We currently have an open PR under review that provides a work around for these cases. 2. Some modules are unintentionally accessible by default via unqualified access due to the way module uses in the internal modules propagate into the user namespace. This has been addressed to some extent already, and should be further addressed after the aforementioned PR from issue 1 has been merged. [1] http://chapel.cray.com/docs/master/modules/builtins.html [2] http://chapel.cray.com/docs/master/modules/modules.html I hope this is helpful. Also, the bug you originally reported should now be fixed on master, i.e. the qualified access of the sort function: Sort.sort() Best, Ben > >-- >Russel. >============================================================================= >Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] >41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] >London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder ------------------------------------------------------------------------------ _______________________________________________ Chapel-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-users
