John Moreno

Results 36 comments of John Moreno

Negative length seems likely to mean "get length characters before start"....

I like your last example better than the alternatives I had thought of (using the first example with a compiler error for the user to clear or using the lock...

In my real code, the LongRunningFunction is sometimes a local function and sometimes a lambda, but I would expect that not to cause a problem with the translation, and even...

Having the key properties in C2 isn’t necessary for the example, it just made it closer to my original starting point, and I didn’t want to stray to far from...

Exact opposite error message (no elements versus more than one), but it might be related. Cannot convert QueryExpressionSyntax, System.InvalidOperationException: Sequence contains more than one element at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) at ICSharpCode.CodeConverter.CSharp.QueryConverter.d__15.MoveNext()...

@zspitz : yes, they have to be last, that is what I meant by not playing nicely together. The reason why ParmaArrays have to be last is that there is...

@gilfusion : you can’t use a named parameter with param array. ``vb.net Dim b = Example("", i:=5, p:= {"param1"}) `` which has all of elements in the correct order with...

ByVal is the default, why not have it the other way around? ``` Dim i = 0 TestA(i) ' TestA(i); TestA(ByRef i) ' TestA(ref i); TestB(i) ' TestB(i); TestB(ByRef i)...

I don't know if this was intended or not, but I would suggest that implicit line continuation should be allowed pretty much anywhere after the IF and before the THEN....