Ticket #633 (closed todo: done)

Opened 5 years ago

Last modified 4 years ago

sizeof_i_i opcode uses old integer types.

Reported by: coke Owned by: coke
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

=item B<sizeof>(out INT, in INT)

Get the size of native datatype $2 in $1.

This opcode either needs to be removed or updated to use a named type.

Change History

Changed 5 years ago by coke

Added a deprecation notice and marked opcode as deprecated in r44286.

If you want this opcode or something like it, should probably mention in before 2.4.

Changed 5 years ago by whiteknight

An ability to get information from the system about the sizes of datatypes would definitely be interesting. Since the info is stored in include/parrot/datatypes.h anyway, we could expose it through another interface such as a method on the ParrotInterpreter object.

Changed 4 years ago by coke

  • owner set to coke

Changed 4 years ago by plobsing

  • status changed from new to closed
  • resolution set to done
Note: See TracTickets for help on using tickets.