Jump to content

Recommended Posts

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
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

Posted

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

Saludos

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...