Jun
7
awarded Notable Question
Apr
7
awarded Notable Question
Mar
25
awarded Popular Question
Feb
25
comment Easiest way to get the N-th argument of a variadic templated class?
This does not compile with the ICC (version 15.0.2). It raises the error: "constexpr" is not valid here. If I make the values static, then another error: a member of type "const T [<expression>]" cannot have an in-class initializer.
Feb
25
asked Restricting field mutation/access to a namespace
Jan
23
revised Array-like data structure with O(1) worst-case concatenate/join?
merge -> concatenate/join (this is the precise operation I am interested in)
Jan
23
comment Array-like data structure with O(1) worst-case concatenate/join?
@jbabble: Thanks for the reference. However, it seems that my merge operation is different from their join/catenate operation in a sense that after a merge(D1, D2) operation, elements of D2 change their indices. So, if I was to use that data structure naively, I would need to change the keys by reinserting all the elements of D2. Do you see any way how I can keep the elements "ordered" but not "indexed"?
Jan
23
comment Array-like data structure with O(1) worst-case concatenate/join?
By sorted, I mean not by element values but by their index, which is let's say the order in which they were appended to the initially empty list-like data structure.
Jan
23
asked Array-like data structure with O(1) worst-case concatenate/join?
Dec
5
comment Dynamically mixing in traits to produce decorator composition of finite size
@Dima: Because you want to decorate only some of them. A contrived example: imagine you have a customizable but monolithic GUI component in which each piece of functionality is achieved via a separate trait. Now, you want to both add new and change some existing functionality. I hope this sheds some light, even though in this example there might be a better way to do it (but let's assume there is no other way).
Dec
5
revised Dynamically mixing in traits to produce decorator composition of finite size
Make it clear that return type does mix in all traits
Dec
5
comment Dynamically mixing in traits to produce decorator composition of finite size
@Imm: You could assume that CommonImpl does mix in all the traits. But even if this was not the case, you could still have checks like oDecorated.isInstanceOf[TraitK] (imagine traits also serve as tags).
Dec
4
revised Dynamically mixing in traits to produce decorator composition of finite size
edited title
Dec
4
asked Dynamically mixing in traits to produce decorator composition of finite size
Dec
4
revised Emacs lisp: Get directory name (not path) from the path
add current solution
Dec
4
asked Emacs lisp: Get directory name (not path) from the path
Dec
1
answered Syncing files with rsync by file names only, ignore directories
Dec
1
comment Rsync make flat copy
For a more efficient solution (only 1 invocation of rsync) see this post
Nov
30
answered Way to go from recursion to iteration
Nov
24
answered Generalized Suffix Tree Java Implementation
1 2 3 4 5