MFC wizard can generate code in classes for many windows native controls which
are not presented in the resource editor panel.I am wondering can DFL or Entice
do the same way for us to make use of these controls?
Thanks for your help in advance.
I'm currently looking at ways to improve std.conv.to. And this might be a good
area to improve std.conv.parse.
For example parse could be made to look for a method static readFrom!(T)()
if(isSomeString!T) and maybe to should take advantage of it.
auto foo = to!A(someString);
I'd have to requir
Adam Burton wrote:
olivier wrote:
Hi,
This program, compiled with dmd 1.065 under Linux, crashes:
void main() {
Num a = 1;
}
struct Num {
int[] d;
Num opAssign( int v ) {
d.length = 1;
d[0] = v;
return *this;
}
}
It looks like d is not initialized before opAssign() is called.
It doesn't cr
hmm I remember http://www.dsource.org/projects/lyla
There also were some others at dsource
Hi All,
I was wondering if anyone could point me to a good library for matrix
operations and decompositions in D2 as I seem unable to find it in phobos for
the moment.
Many thanks,
Fil
Ali Ãehreli:
> If 'in' were to search among the values of arrays, then it wouldn't have
> the same meaning with AAs.
But it's useful and the different semantics is very easy to remember and use.
Bye,
bearophile
olivier wrote:
> Hi,
>
> This program, compiled with dmd 1.065 under Linux, crashes:
>
> void main() {
> Num a = 1;
> }
>
> struct Num {
> int[] d;
>
> Num opAssign( int v ) {
> d.length = 1;
> d[0] = v;
> return *this;
> }
> }
>
> It looks like d is not initialized before opAssign() is calle
vincent picaud wrote:
> Matthias Pleh Wrote:
>> class A
>> {
[...]
>> string toString() { return someData; }
> I have the feeling that the C++ way is more convenient.
>
> Look in C++ , to define I/O for A, you do not have to modify
> your class A and simply have to overload two functions:
bearophile wrote:
> Pelle M.:
>
>> It doesn't exist for performance reasons, I think.
>
> It's not a matter of performance. Walter thinks that "in" on
> AAs searches on keys. And the "keys" of a dynamic array are its
> indices. And searching for indices in a dynamic array is not so
> useful. There
Pelle Månsson Wrote:
> On 12/02/2010 09:05 AM, vincent picaud wrote:
> > Matthias Pleh Wrote:
> >
> >>
> >>>
> >>> Thank you for your reply and yes that works :)
> >>>
> >>> Now i m facing with the following problem, what is the trick for input
> >>> stream ?
> >>>
> >>> ( something like
> >>>
>
Hi,
This program, compiled with dmd 1.065 under Linux, crashes:
void main() {
Num a = 1;
}
struct Num {
int[] d;
Num opAssign( int v ) {
d.length = 1;
d[0] = v;
return *this;
}
}
It looks like d is not initialized
> It's not a matter of performance.
Well, it's also a matter of performance. The "in" done on arrays is a linear
search and I think Andrei thinks that "in" must be sublinear instead.
Bye,
bearophile
Pelle M.:
> It doesn't exist for performance reasons, I think.
It's not a matter of performance. Walter thinks that "in" on AAs searches on
keys. And the "keys" of a dynamic array are its indices. And searching for
indices in a dynamic array is not so useful. Therefore no "in" for
dynamic/stat
On 12/02/2010 01:07 PM, spir wrote:
Hello,
Is there an equivalent of 'in' for (non-associative) arrays? Cannot find any
'contains' function.
(Wouldn't it be nice to have in work for all arrays? What is the reason why it
only works with AAs?)
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir
Hello,
Is there an equivalent of 'in' for (non-associative) arrays? Cannot find any
'contains' function.
(Wouldn't it be nice to have in work for all arrays? What is the reason why it
only works with AAs?)
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
On 12/02/2010 09:05 AM, vincent picaud wrote:
Matthias Pleh Wrote:
Thank you for your reply and yes that works :)
Now i m facing with the following problem, what is the trick for input stream ?
( something like
std::istream& operator>>(std::istream& in,A& a)
{
// A.someData<<
Matthias Pleh Wrote:
>
> >
> > Thank you for your reply and yes that works :)
> >
> > Now i m facing with the following problem, what is the trick for input
> > stream ?
> >
> > ( something like
> >
> > std::istream& operator>>(std::istream& in,A& a)
> > {
> >// A.someData<< in;
> >
17 matches
Mail list logo