Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise lang_item demo to something unrelated to Box impl #22499

Commits on Mar 4, 2015

  1. Replace exchange_malloc/exchange_free demo with something unrelat…

    …ed to Box.
    
    Precursor for landing overloaded-`box`, since that will decouple the
    `box` syntax from the exchange heap (and in fact will eliminate the
    use of the two aforementioned lang items).
    
    Instead, the new demonstration program shows a definition of the
    `str_eq` lang item. (We do not have that many procedural lang-items to
    choose from, which is a good sign for our efforts to decouple the
    compiler from the runtime!)
    
    (This previously used a demo of `panic_bounds_check`, but a `str_eq`
    demonstration is both easier to code and arguably a more interesting
    aspect of the language to discuss.)
    pnkfelix committed Mar 4, 2015
    Configuration menu
    Copy the full SHA
    e5fab33 View commit details
    Browse the repository at this point in the history