Opened 10 years ago

Closed 10 years ago

#644 closed bug (fixed)

newstruct: asssignments from string components is incomplete

Reported by: gorzel Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: singular-kernel Version: 4-0-0
Keywords: newstruct Cc:

Description

Only the first character from a string variable in a newstruct is read off:

 newstruct("nt","int a,poly b,string c");
 nt A;
 A.c ="hello";
 string s;
 s = A.c;
 s;
 h  // "ello" is missing 

Change History (1)

comment:1 Changed 10 years ago by hannes

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.