Opened 13 years ago

Last modified 13 years ago

#322 new proposed feature

no attribute of attributes...

Reported by: Oleksandr Owned by: hannes
Priority: major Milestone: 3-1-3 and higher
Component: singular-kernel Version: 3-1-2
Keywords: Cc:

Description

attrib2.tst   4. def s = "ssss";
attrib2.tst   5> attrib(s, "?I?", 2);
attrib2.tst   6> attrib(s);
attr:?I?, type int 

attrib2.tst   9. def a = list(1, "str");
attrib2.tst  10> attrib(a, "?S?", s);
attrib2.tst  11> attrib(a);
attr:?S?, type string 

attrib2.tst  14. def t = attrib(a, "?S?"); t; t == s;
ssss
1

attrib2.tst  17. attrib(t); // BUG: no "?I?" attribute!!!!!!!!!!!!!!!!!!!!
no attributes

Attachments (1)

attrib2.tst (207 bytes) - added by Oleksandr 13 years ago.
attrib of attrib???

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by Oleksandr

Attachment: attrib2.tst added

attrib of attrib???

comment:1 Changed 13 years ago by hannes

Priority: majorminor
Type: bugproposed feature

Do we really want to attributes of attributes ? According to the documentation, only expressions can have attribute while attributes are a set of tripels: (key, type,value).

comment:2 Changed 13 years ago by Oleksandr

Is it unnatural to expect EXACTLY THE SAME value to be stored as an attribute? i.e. in the above example: t doesn't have the same attributes as s and therefore t != s, that is, some important information was quietly lost...

comment:3 Changed 13 years ago by Oleksandr

We tried the following in muiltigrading.lib:

  1. multi-graded ring has several attributes: variable weights and grading group
  1. groups themselves are useful structures and have their own attributes

of course one can transfer those group-related attributes to the corresponding ring but it is plain wrong and ugly.

Version 1, edited 13 years ago by Oleksandr (previous) (next) (diff)

comment:4 Changed 13 years ago by Oleksandr

Priority: minormajor
Type: proposed featurebug

comment:5 Changed 13 years ago by hannes

Type: bugproposed feature

It is not a bug - the implementation is according to the definition/description. If we reaaly want this, it would be something new.

Note: See TracTickets for help on using tickets.