New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.8: alias syntax no longer works for route handlers #1668

Closed
wilburn opened this Issue Feb 1, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@wilburn

wilburn commented Feb 1, 2017

With Vibe.d 0.7.30 the following handy syntax worked to create handlers:

router.get("/api/login/google", delegate void(scope req, scope res) {
});

However with 0.8 one no longer can provide a alias function and needs to do sth. like:

router.get("/api/login/google", delegate void(scope HTTPServerRequest req, scope HTTPServerResponse res) {

});

This is due to this change:
2d9967e#diff-36fb55448cf0bde8eba77033436ae3eb

Is there any plan on supporting the convenient alias syntax for routes?
(For httpRequest it's still supported.)

@s-ludwig s-ludwig closed this in 2575a39 Feb 2, 2017

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Feb 2, 2017

Member

Fortunately adding an overload beneath the template functions worked without issues. It's now even possible to drop the explicit delegate void prefix.

Member

s-ludwig commented Feb 2, 2017

Fortunately adding an overload beneath the template functions worked without issues. It's now even possible to drop the explicit delegate void prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment