immutable long my_id = 'a' << 24 + 'b' << 16 + 'c' << 8 + 'd';Or you can create a CTFE function to do this from a string, which should be nicer, if you don't find an existing utility for this.
immutable long my_id = 'a' << 24 + 'b' << 16 + 'c' << 8 + 'd';Or you can create a CTFE function to do this from a string, which should be nicer, if you don't find an existing utility for this.