Jump to content

Recommended Posts

Posted (edited)

Ah, for shame. It's creating a copy on assignment. That makes the new map type a lot less useful than I had hoped. I'd recommend to change this behavior. Thanks, jchd.

This works:

Local $a[]
Local $b[]
Local $c[]

$a.Val = "a"
$b.Val = "b"
$c.Val = "c"

$b.Next = $c
$a.Next = $b

ConsoleWrite($a.Val & @CRLF)
ConsoleWrite($a.Next.Val & @CRLF)
ConsoleWrite($a.Next.Next.Val & @CRLF)
Edited by Manadar
Posted

I'm unsure about making an assignment forcibly byref. Jon could someday choose to introduce a ByRef() operator, or more simply by using an unused special character, like $newVar = ! $referencedVar but until then I believe it would be more likely to confuse most users than bring power to a few.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted

I can relate to your argument. Reference-types is something AutoIt has not done until now. However keep in mind that whatever we choose now will be with us for a very long time to come. Perhaps a change in this trend/behavior is long overdue.

Posted

Why? What would happen to the value if you deleted the key?

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

So what is wrong with MapRemove? I think that does what you want.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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