mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 21:30:12 +03:00
Publicly import simpledisplay from pixmappresenter
Looks like a convenience feature, *but* - more imporantly - this prevents certain symbol name clashes from occurring in common user-code.
This commit is contained in:
parent
486195859c
commit
e12846e996
1 changed files with 12 additions and 1 deletions
|
@ -158,7 +158,18 @@
|
|||
module arsd.pixmappresenter;
|
||||
|
||||
import arsd.core;
|
||||
import arsd.simpledisplay;
|
||||
|
||||
/++
|
||||
While publicly importing `arsd.simpledisplay` is not actually necessary,
|
||||
most real-world code would eventually import said module as well anyway.
|
||||
|
||||
More importantly, this public import prevents users from facing certain
|
||||
symbol clashes in their code that would occur in modules importing both
|
||||
`pixmappresenter` and `simpledisplay`.
|
||||
For instance both of these modules happen to define different types
|
||||
as `Pixmap`.
|
||||
+/
|
||||
public import arsd.simpledisplay;
|
||||
|
||||
///
|
||||
public import arsd.pixmappaint;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue