Euphoria Ticket #962: missing euphoria global constants - an easy to fix problem

from the manual for euphoria: object 
<built-in> type object(object x) 
Returns information about the object type of the supplied argument x. 
    An integer. 
        OBJ_UNASSIGNED if x has not been assigned anything yet. 
        OBJ_INTEGER if x holds an integer value. 
        OBJ_ATOM if x holds a number that is not an integer. 
        OBJ_SEQUENCE if x holds a sequence value. 
OBJ_UNASSIGNED,OBJ_INTEGER, OBJ_ATOM & OBJ_SEQUENCE are NOT assigned. Attempting to use them gives an "undefined" error.

include std/console.e 
without warning 

printf(1,"OBJ_INTEGER = %d\n",OBJ_INTEGER) 
printf(1,"OBJ_ATOM = %d\n",OBJ_ATOM) 
printf(1,"OBJ_SEQUENCE = %d\n",OBJ_SEQUENCE) 
puts(1,"\nand Now...\n") 
object obj 
atom atm = 1.2 
integer int = 1 
sequence a_seq = {} 
printf(1,"OBJ_UNASSIGNED = %d\n",object(obj)) 
printf(1,"OBJ_INTEGER = %d\n",object(int)) 
printf(1,"OBJ_ATOM = %d\n",object(atm)) 
printf(1,"OBJ_SEQUENCE = %d\n",object(a_seq)) 

If you remove the comment markers you will get a bunch of errors.
leave them in and you will get what the constants are supposed to be defined as.


4.0.5 (362497032f33, 2012-10-11)

Operating System

Platform: WinNT, Build: Windows7, Service Pack 1:2

Include Directories

1: c:\Euphoria\include\ 2: c:\Euphoria\bin 3: c:\Euphoria/include 4: c:\euphoria\include 5: C:\Euphoria\win32lib\include




C:\Program Files_jed\ConEmuPack.151115;C:\Program Files_jed\ConEmuPack.151115\ConEmu;C:\WATCOM\BINNT;C:\WATCOM\BINW;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jre7\bin\javaw.exe;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\doxygen\bin;C:\Program Files (x86)\Rust stable GNU 1.10\bin;C:\Program Files (x86)\GTK2-Runtime\bin;c:\Euphoria\bin;C:\Program Files_jed\tcc;c:\program files_jed\tcc\include

Press Any Key to continue...

Jesse@JESSE-PC c:\Euphoria\bin


Type: Bug Report Severity: Minor Category: Other
Assigned To: unknown Status: New Reported Release:
Fixed in SVN #: View VCS: none Milestone:


Quick Links

User menu

Not signed in.

Misc Menu