- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Steve, recently we discussed the impure move_alloc and you said it was a mistake and should be pure. Could Intel add the date and time functions to the todo list for purifying? These have no side effects I am aware of so should be pure.
Andy Smith
Andy Smith
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The standard explicitly calls out MOVE_ALLOC (and MVBITS) as PURE. It does not do so for DATE_AND_TIME nor any other intrinsic subroutine. I would argue that DATE_AND_TIME ought not to be pure because it relies on external state.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page