Bug 273820 - Compiler should produce deprecation warning for mapping main(...)
Summary: Compiler should produce deprecation warning for mapping main(...)
Status: RESOLVED FIXED
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 2.0 RC   Edit
Assignee: Sergey Boyko CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2009-04-27 07:26 EDT by Radomil Dvorak CLA
Modified: 2009-05-14 05:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radomil Dvorak CLA 2009-04-27 07:26:33 EDT
The mapping main() ... construct is a legacy feature which has come from the Borland's initial contribution.
It should be deprecated by a compiler warning message, but kept functional for the Galileo release
to ensure backward compatibility. It will be removed after.

1) the compiler should produce "Parameter declaration in the 'main' operation is deprecated." warning on non-mapping main operation using parameters.
Though the spec grammar supports this, it is completely undefined how to handle this case.

2) it should be disallowed to define the main operation as a query or helper.
Comment 1 Sergey Boyko CLA 2009-05-14 05:20:13 EDT
Fixed