View Issue Details

IDProjectCategoryView StatusLast Update
0000250LDMud 3.6LPC Compiler/Preprocessorpublic2020-01-09 00:00
ReporterlarsAssigned ToGnomi  
PrioritynormalSeverityfeatureReproducibilityN/A
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.

Relationships

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

Activities

zesstra

2010-02-15 18: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?

Gnomi

2020-01-09 00: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-26 23:00 lars New Issue
2009-11-05 14:06 zesstra Relationship added related to 0000645
2010-02-15 18:22 zesstra Note Added: 0001734
2020-01-08 23:59 Gnomi Assigned To => Gnomi
2020-01-08 23:59 Gnomi Status new => assigned
2020-01-08 23:59 Gnomi Project LDMud => LDMud 3.6
2020-01-09 00:00 Gnomi Status assigned => resolved
2020-01-09 00:00 Gnomi Resolution open => fixed
2020-01-09 00:00 Gnomi Fixed in Version => 3.6.1
2020-01-09 00:00 Gnomi Note Added: 0002495