Re: DUB copyFiles for subPackages

2019-12-17 Thread Andre Pany via Digitalmars-d-learn
On Tuesday, 17 December 2019 at 13:03:17 UTC, Dmitriy wrote: { ... "configurations": [ { ... "targetPath": "/build", "copyFiles": [ "/template"

DUB copyFiles for subPackages

2019-12-17 Thread Dmitriy via Digitalmars-d-learn
{ ... "configurations": [ { ... "targetPath": "/build", "copyFiles": [ "/template" ], "dependencies": {

Blog Post #0094: Addressing Hardware

2019-12-17 Thread Ron Tarrant via Digitalmars-d-learn
Today's post starts a new series (note the nifty Airport icon) on hardware. We start with an overview, and then look at monitors. You can find it right here: https://gtkdcoding.com/2019/12/17/0094-hardware-i-monitors.html

Re: DUB copyFiles for subPackages

2019-12-17 Thread Dmitriy via Digitalmars-d-learn
copyFiles in subPackage finds file correct, so changing it gives "file not found". Also subPackage builds into "targetPath": "/template" as expected. But copyFiles uses "targetPath": "/build" instead of using it's local "targetPath": "/template". I just assumed if targetPath has been set in

Re: Fastest way to check if the bottom-class of a class reference is any of a set of classes

2019-12-17 Thread Per Nordlöw via Digitalmars-d-learn
On Monday, 16 December 2019 at 18:01:06 UTC, Steven Schveighoffer wrote: I'd compare the typeid directly: auto tid = typeid(object); return(tid is typeid(X) || tid is typeid(Y) || tid is typeid(Z) || ...) If you are doing a cast(const(X))object, what you are doing is each time traversing