Ticket #1906 (new deprecation)

Opened 11 years ago

Last modified 11 years ago

[DEPRECATED] Passing non-const STRING* is deprecated.

Reported by: bacek Owned by:
Priority: major Milestone: 3.9
Component: core Version: master
Severity: high Keywords:
Cc: Language:
Patch status: Platform:

Description

Hello.

All [*] functions currently accepting naked STRING* argument will accept const STRING*. Which includes public-facing API functions, VTABLEs, etc.

This is for making parrot const-correct in immutable-string world.

(Actual milestone should be 3.3)

-- Bacek.

[*] Parrot_str_pin and Parrot_str_unpin will stay in current form.

Change History

Changed 11 years ago by jkeenan

  • milestone 3.6 deleted

Milestone 3.6 deleted

Changed 11 years ago by jkeenan

  • milestone set to 3.6

Changed 11 years ago by nwellnhof

This doesn't work in many cases: Functions that want to return a string argument unchanged under some conditions, functions that pass the string arguments to VTABLE functions, etc.

One of the main problems is that PMC string attributes are non-const.

Changed 11 years ago by jkeenan

  • milestone changed from 3.6 to 3.9
Note: See TracTickets for help on using tickets.