vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function SessionVar.this

Initializes a session var with a constant value.

this (
  T init_val
);

Example

class MyService {
	SessionVar!(int, "someInt") m_someInt = 42;

	void index() {
		assert(m_someInt == 42);
	}
}

Authors

Sönke Ludwig

Copyright

© 2013-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.