Dav1dde / gl3n

OpenGL Maths for D (not glm for D).
http://dav1dde.github.com/gl3n/
Other
103 stars 49 forks source link

Deprecation warnings #90

Closed Fr3nchK1ss closed 3 years ago

Fr3nchK1ss commented 3 years ago

The compiler, as of v2.093.1, gives a few warnings because of two main deprecations :

  1. In fustrum.d, lines like @property ref inout(Plane) left() inout { return planes[LEFT]; } give a warning, because a ref is returned from a member function, which implies that the compiler must keep track of 'this' (dip25)

  2. In linalg.d, lines like private @property ref inout(vt) get_(char coord)() inout { give a warning. The use of private limits the visibility of get_ to the linalg module, but it is then used in several places. See for instance https://github.com/Fr3nchK1ss/Dterrent/runs/1942657117?check_suite_focus=true

I will immediately do a pull request which corrects both deprecations.

Dav1dde commented 3 years ago

@Fr3nchK1ss Thanks for the explanations!