On Tue, Jan 26, 2010 at 6:16 PM, Nick Sabalausky wrote:
>>"Bill Baxter" wrote in message
>>news:mailman.34.1264542189.4461.digitalmars-d-le...@puremagic.com...
>>On Tue, Jan 26, 2010 at 1:21 PM, bearophile
>>wrote:
>>> Nick Sabalausky:
Aside from that being how Python does it, why do you se
bearophile wrote:
> Nick Sabalausky:
>> Aside from that being how Python does it, why do you see that as
>> preferable?
>
> Because: 1) linear searches in an array are damn common. I don't
> remember the results of my benchmarks, but until your integer arrays
> is quite longer than 30-50 items, pe
>"Bill Baxter" wrote in message
>news:mailman.34.1264542189.4461.digitalmars-d-le...@puremagic.com...
>On Tue, Jan 26, 2010 at 1:21 PM, bearophile
>wrote:
>> Nick Sabalausky:
>>> Aside from that being how Python does it, why do you see that as
>>> preferable?
>>
>> Because:
>> 1) linear search
BCS wrote:
> Hello Jesse,
>
>> For the following code I get the bellow error. I'm wondering if I
>> should be reporting a bug, or if creating default delegates is
>> correctly prevented?
>>
>> .\defltdg.d(10): Error: delegate defltdg.__dgliteral3 is a nested
>> function and cannot be accessed fro
I was looking at the std.signals code in svn to find out how the magic
of the observer class not needing to inherit anything was done and I was
somewhat disappointed to see rt_attachDisposeEvent. Is this function
standardised or exposed anywhere? I can think of cases where being able
to listen
Nick Sabalausky:
>I don't see how any of that argues against the idea of making "in" always
>operate on the elements and having a different method for checking the keys.<
I have already done my best with those words, so... :-)
AA elements are its keys, that are a set. In Python3 if you have a d
"bearophile" wrote in message
news:hjnmdl$166...@digitalmars.com...
> Nick Sabalausky:
>> Aside from that being how Python does it, why do you see that as
>> preferable?
>
> Because:
> 1) linear searches in an array are damn common. I don't remember the
> results of my benchmarks, but until you
Hello Jesse,
For the following code I get the bellow error. I'm wondering if I
should be reporting a bug, or if creating default delegates is
correctly prevented?
.\defltdg.d(10): Error: delegate defltdg.__dgliteral3 is a nested
function and cannot be accessed from main
import std.stdio;
void
For the following code I get the bellow error. I'm wondering if I should be
reporting a bug, or if creating default delegates is correctly prevented?
.\defltdg.d(10): Error: delegate defltdg.__dgliteral3 is a nested function and
cannot be accessed from main
import std.stdio;
void main() {
t
On Tue, Jan 26, 2010 at 1:21 PM, bearophile wrote:
> Nick Sabalausky:
>> Aside from that being how Python does it, why do you see that as preferable?
>
> Because:
> 1) linear searches in an array are damn common. I don't remember the results
> of my benchmarks, but until your integer arrays is qu
Nick Sabalausky:
> Aside from that being how Python does it, why do you see that as preferable?
Because:
1) linear searches in an array are damn common. I don't remember the results of
my benchmarks, but until your integer arrays is quite longer than 30-50 items,
performing a linear search is f
Hello Nick,
"Pelle Månsson" wrote in message
news:hjmmod$1io...@digitalmars.com...
I think in should work for keys in an associative array and for
values in a regular array.
This is how it works in python.
Aside from that being how Python does it, why do you see that as
preferable? I see b
"Pelle Månsson" wrote in message
news:hjmmod$1io...@digitalmars.com...
>
> I think in should work for keys in an associative array and for values in
> a regular array.
>
> This is how it works in python.
Aside from that being how Python does it, why do you see that as preferable?
I see both ar
Pelle MÃ¥nsson:
> I think in should work for keys in an associative array and for values
> in a regular array.
> This is how it works in python.
opIn_r for normal arrays is something very natural. One of the very few persons
that doesn't like it is Walter. Maybe I can create a small poll to see
On 22/01/10 21:55, strtr wrote:
This may be is a very basic question, but is there a way to let me omit a
repeating variable when doing multiple boolean operations?
if ( var == a || var == b || var == c || var == d)
if ( var == (a || b || c || d) )
/**
* Untested code, it works something lik
On 01/26/2010 01:02 AM, Nick Sabalausky wrote:
"strtr" wrote in message
news:hjd6t1$be...@digitalmars.com...
This may be is a very basic question, but is there a way to let me omit a
repeating variable when doing multiple boolean operations?
if ( var == a || var == b || var == c || var == d)
i
16 matches
Mail list logo