On Sat, 22 Oct 2011 23:01:17 -0400, bearophile bearophileh...@lycos.com
wrote:
Thanks for all the answers.
Steven Schveighoffer:
a ~ b should technically be assignable to char[], since it's alread new
memory. We may yet get there with pure functions being able to implicit
cast to
Thanks for all the answers.
Steven Schveighoffer:
a ~ b should technically be assignable to char[], since it's alread new
memory. We may yet get there with pure functions being able to implicit
cast to immutable.
Isn't that kind of the opposite?
Is this already in Bugzilla?
Some
bearophile Wrote:
I have many strings and I want to use as associative array kay a sorted
concat of two strings (it's a signature of the two strings):
import std.algorithm;
void main() {
string a = red;
string b = green;
int[string] aa;
//aa[(a ~ b).sort] = 1;
I have many strings and I want to use as associative array kay a sorted concat
of two strings (it's a signature of the two strings):
import std.algorithm;
void main() {
string a = red;
string b = green;
int[string] aa;
//aa[(a ~ b).sort] = 1;
//aa[(a ~ b).sort.idup] = 1;
On Thursday, October 20, 2011 21:49:27 bearophile wrote:
I have many strings and I want to use as associative array kay a sorted
concat of two strings (it's a signature of the two strings):
import std.algorithm;
void main() {
string a = red;
string b = green;
int[string] aa;
On Thu, 20 Oct 2011 21:49:27 -0400, bearophile bearophileh...@lycos.com
wrote:
I have many strings and I want to use as associative array kay a sorted
concat of two strings (it's a signature of the two strings):
import std.algorithm;
void main() {
string a = red;
string b = green;