Skip to content

Commit

Permalink
add note for new function pkgdir() (JuliaLang#33128)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Feb 5, 2020
1 parent b0c33b0 commit df4e55f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ New library functions
* `takewhile` and `dropwhile` have been added to the Iterators submodule ([#33437]).
* `accumulate` has been added to the Iterators submodule ([#34033]).
* There is a now an `evalpoly` function meant to take the role of the `@evalpoly` macro. The function is just as efficient as the macro while giving added flexibility, so it should be preferred over `@evalpoly`. `evalpoly` takes a list of coefficients as a tuple, so where one might write `@evalpoly(x, p1, p2, p3)` one would instead write `evalpoly(x, (p1, p2, p3))` ([#32753]).
* `pkgdir(ModuleName)` now provides an simpler way to return the package root directory of a module (or submodule) than the typically used `dirname(dirname(pathof(ModuleName)))` ([#33128]).

New library features
--------------------
Expand Down

0 comments on commit df4e55f

Please sign in to comment.