View Issue Details

IDProjectCategoryView StatusLast Update
0000250LDMud 3.6LPC Compiler/Preprocessorpublic2020-01-09 01:00
ReporterlarsAssigned ToGnomi  
Status resolvedResolutionfixed 
Product Version3.2.8 and before 
Fixed in Version3.6.1 
Summary0000250: Casts should just check types, not convert them
DescriptionShort: Casts should just check types, not convert them.
From: Lars
Date: 2001-06-10
State: New

A cast just should generate an instruction to check the casted type
at runtime, but otherwise not convert it.
TagsNo tags attached.


related to 0000645 new LDMud 3.3 casting structs (to 'inherited struct') does nothing 



2010-02-15 19:22

administrator   ~0001734

So assume a (int)a would check if a is of type int. What should be the reaction if it is not? Runtime error, runtime warning, message into the debug log?


2020-01-09 01:00

manager   ~0002495

This is now the behavior of declarative casts with runtime type checks enabled.

Issue History

Date Modified Username Field Change
2004-11-27 00:00 lars New Issue
2009-11-05 15:06 zesstra Relationship added related to 0000645
2010-02-15 19:22 zesstra Note Added: 0001734
2020-01-09 00:59 Gnomi Assigned To => Gnomi
2020-01-09 00:59 Gnomi Status new => assigned
2020-01-09 00:59 Gnomi Project LDMud => LDMud 3.6
2020-01-09 01:00 Gnomi Status assigned => resolved
2020-01-09 01:00 Gnomi Resolution open => fixed
2020-01-09 01:00 Gnomi Fixed in Version => 3.6.1
2020-01-09 01:00 Gnomi Note Added: 0002495