Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007279opensim[REGION] Scripting Enginepublic2014-07-24 11:582014-07-24 12:00
Reporterargus Portal 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007279: Missed casting implicitly done instead of cause an error-message
DescriptionYou can assign an integer to a string as a constant or as a variable as well.

In SecondLife this cause an "Type mismatch"-error.

Steps To ReproduceTry the following script and you will get 4 results, like as if i had casted to string:


----------------- cut ----------------


default
{
    state_entry()
    {

    }


    touch_start(integer nr)
    {
        integer test_int;
        string test_string;

        test_int = 123;
        
        llOwnerSay("test1 " + test_int);
        llOwnerSay("test2 " + 123);

        test_string = "test: " + test_int;
        llOwnerSay("test3 " + test_string);
        
        test_string = "test: " + 123;
        llOwnerSay("test4 " + test_string);
        
     }

}


TagsNo tags attached.
Git Revision or version numbertested just now at sandboxplaza 1 (so it should be the newest one)
Run Mode Grid (Multiple Regions per Sim)
Physics EngineODE
Script Engine
EnvironmentUnknown
Mono VersionNone
Viewer
Attached Files

- Relationships

-  Notes
(0026571)
argus Portal (reporter)
2014-07-24 12:00

I forgot to say, that float behaves as expected. There you get an error.

- Issue History
Date Modified Username Field Change
2014-07-24 11:58 argus Portal New Issue
2014-07-24 12:00 argus Portal Note Added: 0026571


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker