[11 Apr 2011] Bug in Hollywood 4.7

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[11 Apr 2011] Bug in Hollywood 4.7

Post by nexus »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 11 Apr 2011 13:15:37 +0200 (CEST)

I think, i mentioned it already some time ago for some previous version .. but just in case, i didn't:

When defining own constants like

Code: Select all

Const #MYCOLOR = $004353
You can't use those constant in TextOut-Objects *IF* you want to compile the script to a machine binary (tested with amigaos3 and amigaos4):

Code: Select all

TextOut(0,0,"[color=#MYCOLOR]bla bla[/color]");
This gives an error about "unknown" constant. When executing the script directly (without compiling it to some machine binary), the line above works.

Predefined constants, like #RED do always work -- only self defined constants don't work.

regards, Tom
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[15 Apr 2011] Re: Bug in Hollywood 4.7

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 15 Apr 2011 12:28:55 +0200
This gives an error about "unknown" constant. When executing the script directly (without compiling it to some machine binary), the line above works.

Predefined constants, like #RED do always work -- only self defined constants don't work.
Yes, that's a bug. It's already fixed though in my current builds because Allanon reported this bug earlier but in a different context. User-constants also didn't work when using @INCLUDE with applets. But it's the same bug (user constants were not exported correctly to applets/executables).
Locked