[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug default/31593] New: field labels are not acknowledged in struct con
From: |
jose.marchesi at oracle dot com |
Subject: |
[Bug default/31593] New: field labels are not acknowledged in struct constructors |
Date: |
Tue, 02 Apr 2024 10:11:41 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31593
Bug ID: 31593
Summary: field labels are not acknowledged in struct
constructors
Product: poke
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: default
Assignee: unassigned at sourceware dot org
Reporter: jose.marchesi at oracle dot com
CC: poke-devel at gnu dot org
Target Milestone: ---
At this point struct constructors work this way:
1. An empty struct is created.
2. Fields are created for the new struct
2.1. if a value is provided for the field, use it
and check integrity. This takes into account
optional fields.
2.2. otherwise, construct the field.
3. Return the new struct.
In order to take field labels into account, the process should be changed to
something like:
1. An empty struct is created.
2. Fields are created for the new struct
2.1. if a value is provided for the field, use it
2.2. otherwise, construct the field
3. Open a temporary mem IO space
4. Write the resulting struct using the type's writer into the
temporary IO space.
5. Map back the struct. This may raise E_constraint
6. Return the resulting struct
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug default/31593] New: field labels are not acknowledged in struct constructors,
jose.marchesi at oracle dot com <=