[10 May 2008] Using the colon instead of the period as link in function call
Posted: Sat Jun 13, 2020 5:31 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 10 May 2008 18:00:37 -0000
Hi
While reading on page 22, column 2 in Amiga Future issue 72 about the latest 3.1 update for Hollywood I noticed that I could now use a colon instead of a period as link in a function call.
Can I ask some one to provide a small piece of code demonstrating how this is supposed to work. I have not seen (or missed it anyway) any references to this in the online manual.
Currently I use this approach to minimize typing and speed up the code...
and so on.... which works quite well. But perhaps that colon thing can be used to do something similar in a more 'elegant' way 
Thanks
Jesper
Hi
While reading on page 22, column 2 in Amiga Future issue 72 about the latest 3.1 update for Hollywood I noticed that I could now use a colon instead of a period as link in a function call.
Can I ask some one to provide a small piece of code demonstrating how this is supposed to work. I have not seen (or missed it anyway) any references to this in the online manual.
Currently I use this approach to minimize typing and speed up the code...
Code: Select all
ItemList = {}
ItemList[0] = {}
Function Doh()
local il = ItemList[0]
il.name$ = "Some name"
il.color = some_color
/* etc. */
EndFunction
Thanks
Jesper