4D SYSTEMS FORUM

Register New Posts
 
 
 


Reply
 
Author Comment
 
pgerlach

Registered: 26/05/12
Posts: 19
Reply with quote #1 
Hello,

this one lost me a few hours. I ran into it after a search&replace made without paying attention. See attached file for reproduction.

Assuming I don't have anything else defined. This line triggers an error as expected

Code:
#constant MYCONST := IDONTEXIST

but this one does not

Code:
#constant MYCONST := MYCONST

The value of MYCONST is then 0 if printed. There should at least be a warning, as we're assigning something that does not exist yet.

(it is half coherent with this one not triggering an error, assigning an empty value to a constant

Code:
#constant MYCONST := 
)

 
Attached Files:
4dg assign_const_to_self.4dg (466 Bytes, 3 views)

__________________
pierre

meldavia

Registered: 18/03/07
Posts: 900
Reply with quote #2 
Hi, thanks for that report,

it is now on the list for the next compiler fix.


__________________
Regards,
Dave
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Powered by Website Toolbox - Create a Website Forum Hosting, Guestbook Hosting, or Website Chat Room for your website.