Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created June 28, 2011 15:39
Show Gist options
  • Save hosiawak/1051419 to your computer and use it in GitHub Desktop.
Save hosiawak/1051419 to your computer and use it in GitHub Desktop.
karol@mint ~/projects/personal/rubinius_macros $ rbx compile -B -e "if :hello then 'hello' else 'else'; end"
============= :__script__ ==============
Arguments: 0 required, 0 total
Locals: 0
Stack size: 1
Lines to IP: 1: 0..11, 0: 12..14
0000: push_literal :hello
0002: goto_if_false 9
0004: push_literal "hello"
0006: string_dup
0007: goto 12
0009: push_literal "else"
0011: string_dup
0012: pop
0013: push_true
0014: ret
----------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment