Fun With Types

Blitz3D Forums/Blitz3D Programming/Fun With Types

Thanks a lot, that works fine!



Just for curiosities sake I'm gonna post this weird finding too!
As I was figuring how to then call the function, All the following compiled and ran fine:

First, this seems to be the 'correct' syntax to use:
InstanceName.Movies=GetMovie("Shaun Of The Dead")


My initial attempt, which I am unsure if it makes a difference, but this worked too:
InstanceName.Movies=GetMovie.Movies("Shaun Of The Dead")


And now, the really weird one:
InstanceName.Movies=GetMovie.SomeTypeNameThatDoesntEvenExist("Shaun Of The Dead")


Seems the actual function call ignores the . and everything between it and the ()

Although the following didn't work, so the compiler is clearly looking ONLY at the name of the handle.
InstanceName.SomeTypeThatDoesntExist=GetMovie.Movies("Shaun Of The Dead")