PR# 19994 Once classes: does not work in finalized mode
Problem Report Summary
Submitter: gobobe
Category: Compiler
Priority: Low
Date: 2026/06/06
Class: Bug
Severity: Non-critical
Number: 19994
Release: 25.12.9.8922
Confidential: No
Status: Open
Responsible:
Environment: win
Synopsis: Once classes: does not work in finalized mode
Description
When using once classes in finalized mode, it behaves as if it was not "once":
b1 = {BB}.f: False
b2 = {BB}.f: False
b1 = b2: False
The same code works fine in workbench mode:
b1 = {BB}.f: True
b2 = {BB}.f: True
b1 = b2: True
--
Eric Bezault
To Reproduce
class AA
create
make
feature
make
local
b1: BB
b2: BB
do
create b1.f
print ("b1 = {BB}.f: " + (b1 = {BB}.f).out + "%N")
create b2.f
print ("b2 = {BB}.f: " + (b2 = {BB}.f).out + "%N")
print ("b1 = b2: " + (b1 = b2).out + "%N")
end
end
~~~~~~~~~~~~~~~
once class BB
create
f
feature
f
once
end
end
Problem Report Interactions