Klaas-Jan Stol wrote:
Hello,

I have a short and simple question w.r.t. syntax for constructing new objects for the architect :-)
Currently, it's done through:

 new P0, .Integer
or in PIR:
 $P0 = new Integer # or .Integer

I thought to have read somewhere this will be changed into something like this:

 $P0 = Integer.new()

The two candidates currently are:

$P0 = get_class "HLLClass"
$P1 = $P0.new()

Or:

$P0 = get_hll_namespace
$P1 = $P0.find_class("HLLClass")
$P2 = $P1.new()

(also solving the issue (ticket) of whether there should be dot-prefix in PIR for built-in types)
However, I have not read this in the PDD on objects. Will this be the case?

No dot-prefix, but also no bareword class names. Only quoted names. Same is true for both high-level objects and low-level PMC objects.

Allison

Reply via email to