Custom Query (3910 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (334 - 336 of 3910)

Ticket Resolution Summary Owner Reporter
#930 No Bug Arraydisplay does not display everything Gary wimhek
Description

When a row in an arry contains a '|' dislaying of the line stops.

#include <Array.au3> dim $aaa [2]

$aaa [0] = "Ape|Nut|Mary|Wim" $aaa [1] = "Ape;Nut;Mary;Wim"

_ArrayDisplay($aaa)

#1565 Fixed Arrays as object properties; memory leak Jon trancexx
Description

If arrays are used with objects as e.g. properties some sort of memory leak occurs. This seems to be specific only to Array type. Example (monitor memory usage during execution):

$a = StringSplit("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",")

MsgBox(0, "", "start")
For $count = 0 To 10000
	$obj = ObjCreate("Scripting.Dictionary")
	$obj.add("test", $a)
	$obj = 0
Next
MsgBox(0, "", "stop")

For possible comparisons, VBS version would be:

a = Split("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",")
 
MsgBox("start")
For count = 0 to 10000
    Set obj=CreateObject("Scripting.Dictionary")
    obj.add "test", a
    Set obj = Nothing
Next
MsgBox("stop")

No leak there (or with some other languages).

#831 Rejected Arrays with ranged size - optimizing without breaking compatibility with old scripts madflame991
Description

Many many times I wished AutoIt had arrays with ranged size... there are numerous situations when I really don't use element0 from an array simply because I, as a human being, like to count starting from 1. Another thing is that there are some algorithms which can be optimized like in the example below:

Dim $counter[65..90]
For $i = 1 to StringLen($s)
  $counter[Asc(StringMid($s,$i,1))] += 1
Next

should be faster than

Dim $counter[26]
For $i = 1 to StringLen($s)
  $counter[Asc(StringMid($s,$i,1))-65] += 1
Next

because of the missing -65

The best part is that backward compatibility won't be ruined because arrays declared as "Dim $array[10]" will by default mean "Dim $array[0..9]" for the "compiler". This method of declaring arrays is found in user-friendly programming languages such as Pascal and Basic, whereas the old style is used in the middle level C programming language. Also, from what I can tell it shouldn't be to hard to implement, but... you know what's best!

Thank you for your time, madflame991

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.