RejectedSoftware Forums

Sign up

Pages: 1 2

Re: Running vibe.d project with DUB using custom main()

On Sat, 20 Apr 2013 15:14:14 GMT, Matej Nanut wrote:

But why doesn't the actual type work? Why musn't it be const?

Using just "render" seems to infer the types correctly?

The problem is that typeid(const(T)) !is typeid(T) and the type id is everything that renderCompat has to recover the original type. render!() on the other hand will just be a separate template instantiation (render!("...", <alias to const var>) vs. render!("...", <alias to non-const var>)) and as long as the Diet template doesn't try to write to the variable, everything will work fine (except that local aliases are still broken in DMD and may result in bad codegen).

Re: Running vibe.d project with DUB using custom main()

Am 19.04.2013 18:49, schrieb Matej Nanut:

Must be ... if I use "render" (not "renderCompat") it works fine.

But how would I specify the compile-time argument correctly? If I use "typeof(model)" (or "const JavaRunVM") it errors out with:
(...)

I've committed a change that should make this work now. There was an
assignment in the code that didn't work because of the const.

Re: Running vibe.d project with DUB using custom main()

On Wed, 24 Apr 2013 09:29:57 +0200, Sönke Ludwig wrote:

I've committed a change that should make this work now. There was an
assignment in the code that didn't work because of the const.

Thanks! When do changes become active when upgrading packages with DUB?

Re: Running vibe.d project with DUB using custom main()

Am 25.04.2013 21:12, schrieb Matej Nanut:

On Wed, 24 Apr 2013 09:29:57 +0200, Sönke Ludwig wrote:

I've committed a change that should make this work now. There was an
assignment in the code that didn't work because of the const.

Thanks! When do changes become active when upgrading packages with DUB?

If you use the "~master" version of vibe.d, "dub upgrade" should
immediately get the latest changes from github.

But when working frequently with the master version, it can be more
comfortable to install a dependency using:

git clone http://github.com/rejectedsoftware/vibe.d.git
dub add-local vibe.d ~master

and then always upgrade using "git pull" in that folder instead.

Pages: 1 2