Dub integrated into the compiler?

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 27 02:19:00 PDT 2014


On Mon, 2014-10-27 at 02:33 +0000, Tofu Ninja via Digitalmars-d wrote:
[…]
> Something like "import derelict.opengl3.gl3;" could automatically 
> trigger dub if the import was not found on any local path.
[…]

Groovy has "grapes" for automated download of dependencies.

        @Grab("org.spockframework:spock-core:0.7-groovy2.0")
        import spock.core.Specification

The artefact is cached locally after first download, but you have to
remember to run the script while connected to the Internet. Not that
useful for projects where the Gradle script would manage the
dependencies, but great for scripts.

Go also allows for import of packages from elsewhere, and I rather like
the way that is done, but I think that whole Go mechanism has been
slagged off on this list a number of times already. Pity.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141027/344e28b0/attachment.sig>


More information about the Digitalmars-d mailing list