Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • D
import std.conv;
auto i = s.to!int;

The useful to function can convert just about anything to something else. It will throw on a non-integral input string.
I : Integer := Integer'Value (s);

New implementation...