Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (91 - 93 of 3866)

Ticket Resolution Summary Owner Reporter
#2727 Wont Fix optional Datatypes anonymous
Description

The fact that I could not even find one ticket about this probably tells me that I shouldn't ask, but anyway, here we go.

If I remember it correctly then the variant datatype works by converting the content of the variables you are currently working with to the type that makes the most sense. If this is correct than it obviously has to be done every time the user works with a variable and therefore I guess that it slows AutoIt down a lot.

What I am asking for is not to force every user to specify the type of every variable, because this would break every AutoIt v3 script that is still working and it would be completely unnecessary.

What I am asking for instead is a static type system that is completely optional, that works by adding new Keywords and that simply bypasses all the checks and conversions that are currently done.

Example:

Local $a, $b, $c ; no datatype specified -> Variant
Local Int $i
Local String $s
Local Bool $f = ($a > $b)

Thanks for reading.

#1161 Fixed old colormode links and remarks. Valik anonymous
Description

old colormode links and remarks. counting 9 after help search for "colormode"

#1293 No Bug odd value returned when assigning "default" to Scripting.Dictionary Gabriel13
Description

When the AutoIt "default" value is assigned to a Scripting.Dictionary object, and later retrieved, the result is no longer "default".

Instead, it becomes a strange "falsy" value which varGetType() identifies as "Object", yet it fails the isObj() test.

The code below illustrates what happens - I've also confirmed that this issue is present in the latest beta (3.3.1.5).

func testDictionary($v)
	local $d=objCreate('Scripting.Dictionary')
	$d.add('x',$v)
	return $d.item('x')
endfunc

msgbox(0,default,@AutoItVersion)

local $v=default
msgbox(0,default,'"' & string($v) & '"' & @LF & varGetType($v) & @LF & isObj($v))
; returns "Default", Keyword, 0

; assign to dictionary & then retrieve
$v=testDictionary($v)
msgbox(0,default,'"' & string($v) & '"' & @LF & varGetType($v) & @LF & isObj($v))
; returns "", Object, 0

if $v then
	msgbox(0,default,'truey')
else
	msgbox(0,default,'falsy')
endif
; returns "falsy"
Note: See TracQuery for help on using queries.