Wiki

Ticket #8 (assigned enhancement)

Opened 10 years ago

Last modified 8 years 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 Download (2.2 KB) - added by hopscc 10 years ago.
patches for deprec warnings and fixes to CobraLang
deprecFixTests.patch Download (5.9 KB) - added by hopscc 10 years ago.
patch for changes to Testfiles (avoid deprec warning)
forDeprec1.patch Download (20.8 KB) - added by hopscc 9 years ago.

Change History

Changed 10 years ago by hopscc

patches for deprec warnings and fixes to CobraLang

Changed 10 years ago by hopscc

patch for changes to Testfiles (avoid deprec warning)

Changed 9 years 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 9 years 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 9 years ago by hopscc

Changed 9 years 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 9 years ago by Chuck

  • type changed from defect to enhancement

Changed 8 years ago by hopscc

Touch to raise into last 50.

Note: See TracTickets for help on using tickets.