PR# 18630 Call to {POINTER}.out selects incorrect routine
Problem Report Summary
Submitter: finnianr
Category: Compiler
Priority: Low
Date: 2013/07/03
Class: Bug
Severity: Non-critical
Number: 18630
Release: 7.2.9.1351
Confidential: No
Status: Open
Responsible:
Environment: Linux Mint 14
Synopsis: Call to {POINTER}.out selects incorrect routine
Description
If you examine the code below, you would expect the call 'object_ptr.out' to return a string representation of the objects address. But that is not what happens, instead it calls the 'out' routine of the current object. This happens in workbench mode. MY_CLASS make (size: INTEGER_32) -- (export status {NONE}) local object_ptr: POINTER do create last_string.make_empty create text.make (size) object_ptr := $Current make_with_name (object_ptr.out) end
To Reproduce
Problem Report Interactions