bugFreePOOMA - Bugs: bug #10895, Having Array and Field causes code...

 
 

bug #10895: Having Array and Field causes code duplication

Submitter:  Richard Biener <richi>
Submitted:  Wed 03 Nov 2004 10:11:09 PM UTC
   
 
Category:  Enhancement request Severity:  2 - Minor
Priority:  5 - Normal Status:  None
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 03 Nov 2004 10:11:09 PM UTC, original submission:  

The way we have the Array and Field abstractions causes needless code duplication.  This is because:
 - Array<int, class, class> and Field<class, class, class>
   don't allow common specializations with template template
   parameters.
 - Expression engines (and others) deal with Array and
   Field, not the other way around.

Possible solutions:
 - template Array on Mesh, T, EngineTag, like Field, but in
   practice use not instantiated NoMesh<Dim>.  Allows to
   merge certain traits classes.
   This may allow use of real Mesh with Arrays in the
   future.
 - strip Array/Field information off the ExpressionEngine
   leafs and only combine Array/Field information for the
   Array/Field encapsulating the ExpressionEngine.
   Maybe hard to do, may clash with certain ways the
   FieldEngine works currently (which sucks bad way, too)

This is of course all r3 material.

Richard Biener <richi>
Group administrator

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 16MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16.
Corresponding source code