OCaml Forge
Feature Requests
Search the entire project
This project's trackers
This project's releases
This project's news
Project
People
Advanced search
Log In
New Account
Home
My Page
Projects
Code Snippets
OCaml Data Notation
Summary
Activity
Tracker
Lists
News
SCM
Files
Detail: [#676] detect reuse of datastructure
Feature Requests: Browse
|
Download .csv
|
Monitor
[#676] detect reuse of datastructure
Date:
2010-06-25 14:20
Priority:
3
State:
Open
Submitted by:
Sylvain Le Gall (
gildor-admin
)
Assigned to:
Sylvain Le Gall (gildor-admin)
Component:
None
Operating System:
None
Product:
None
Summary:
detect reuse of datastructure
Detailed description
When we output datastructure, we don't detect that there are common patterns in it.
e.g
{
build_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
install_type =
("internal", Some (VInt (0, VInt (1, VInt (0, VEnd)))));
install_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
uninstall_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
clean_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
distclean_custom =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
};
}
We should detect this and output:
let a0 =
{
pre_command = [(EBool true, None)];
post_command = [(EBool true, None)];
}
in
{
build_custom = a0;
install_type =
("internal", Some (VInt (0, VInt (1, VInt (0, VEnd)))));
install_custom = a0;
uninstall_custom = a0;
clean_custom = a0;
distclean_custom = a0;
}
Followup
No Followups Have Been Posted
Attached Files:
Changes:
Field
Old Value
Date
By
assigned_to
none
2010-09-01 15:56
gildor-admin