Sign in to follow this  
Followers 0
Danyfirex

Autoit Structure Access dot(.)

4 posts in this topic

#1 ·  Posted (edited)

Well This is not really a General/Support question, it's more like a doubt, ¿since when AutoIt allows to do something like my example?, I never notice that. :S
 
 
Local $Struct=DllStructCreate("int v1;int v2")

$Struct.v1=10 
$Struct.v2=12
MsgBox(0,DllStructGetData($Struct,2),$Struct.v1)
 
Is it as safe as DllStructGetData/DllStructSetData?
 
Saludos
Edited by Danyfirex

Share this post


Link to post
Share on other sites



Lol me neither :o


Codes codes codes.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It was added during one dev period almost two years ago.

It made sense to add because AutoIt was turning new chapter where having syntax like that for dllstruct access was justified.

In fear that the new chapter won't be made, I suggested and then executed non-full implementation, where only literals are accepted for "addressing". The plan was to collect feedback and then fully implement or remove the feature based on analysis of it. Needles to say, adding the full support is as trivial as removing the feature for smart AutoIt developer because of the way the feature was implemented.

AutoIt never made that new chapter, it's maybe only few lines below from where it was 2, 3, 4, 5 years ago.

Edited by trancexx

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Thank you so much dear trancexx.  full implementation was great. strange that I never noticed that.

Saludos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0