Ticket #8 (assigned enhancement)

Opened 9 months ago

Last modified 5 weeks ago

Use of old For statement should generate a deprecation warning

Reported by: hopscc Owned by: Chuck
Priority: minor Milestone:
Component: Cobra Compiler Version: 0.7.4
Keywords: Cc:

Description

Since the old for statement ( for v = start .. stop) is deprecated
its use should cause notification of that fact and a suggestion on how to correct for it

Attachments

forDeprec.patch (2.2 kB) - added by hopscc 9 months ago.
patches for deprec warnings and fixes to CobraLang
deprecFixTests.patch (5.9 kB) - added by hopscc 9 months ago.
patch for changes to Testfiles (avoid deprec warning)
forDeprec1.patch (20.8 kB) - added by hopscc 6 months ago.

Change History

Changed 9 months ago by hopscc

patches for deprec warnings and fixes to CobraLang

Changed 9 months ago by hopscc

patch for changes to Testfiles (avoid deprec warning)

Changed 6 months ago by Chuck

When I introduced the new syntax, I was planning to (a) completely downplay the old syntax in the docs and (b) leave the old syntax in place, without warning, for some lengthy period of time. Even the compiler still uses the old syntax--something like 50 times.

gco '\.\.' | grep -v '\.\.\.' | wc -l

Ideally the patch would fix the files in Source/*.cobra and also be just one patch file.

Changed 6 months ago by hopscc

  • owner changed from Chuck to hopscc
  • status changed from new to assigned

OK I'll redo the patchfile - It will be one hell of a large patch.

Changed 6 months ago by hopscc

Changed 6 months ago by hopscc

  • owner changed from hopscc to Chuck

New patch file modified as requested - subsumes all patch files to date.
Implementation change, new test files, mods to IntDevRelNotes?, changes to existing tests, changes to compiler source so compiles with new src code without error/warning.

Changed 5 weeks ago by Chuck

  • type changed from defect to enhancement
Note: See TracTickets for help on using tickets.