This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (+ 2 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (+ 2 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (+ 2 3) | |
| (+ 4 5) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Simulate ./build/iPhoneSimulator-7.0-Development/iLisp.app | |
| (main)> v = UIView.alloc | |
| => #<UIView:0xc5b16d0> | |
| (main)> v.methods.sort.select {|m| m.to_s =~ /init.*/} | |
| => [:init, :"initWithCoder:", :"initWithFrame:", :"initWithSize:", :"initialize_clone:", :"initialize_dup:", :selectionAffinity] | |
| (main)> v.send("initWithFrame:", CGRectMake(10, 10, 100, 100)) | |
| dyld: lazy symbol binding failed: Symbol not found: __ZN9RoxorCore14find_bs_structESs | |
| Referenced from: /Library/RubyMotion/data/ios/7.0/iPhoneSimulator/libmacruby-repl.dylib | |
| Expected in: flat namespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let ((w (.window *app*)) | |
| (b (UIButton/buttonWithType: UIButtonTypeSystem))) | |
| (.frame= b '((10 100) (100 44))) | |
| (.backgroundColor= b (UIColor/lightGrayColor)) | |
| (.setTitle:forState: b "Push Me" UIControlStateNormal) | |
| (.setTitleColor:forState: b (UIColor/blackColor) UIControlStateNormal) | |
| (.when b UIControlEventTouchUpInside | |
| (lambda (sender) | |
| (trace "click!"))) | |
| (.addSubview w b)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let ((w (.window *app*)) | |
| (root (.init (UIView.))) | |
| (input (.init (UITextField.))) | |
| (output (.init (UITextField.))) | |
| (convert-f-c (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (convert-c-f (UIButton/buttonWithType: UIButtonTypeSystem))) | |
| (.frame= root '((10 200) (300 300))) | |
| (.backgroundColor= root (UIColor/lightGrayColor)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let ((w (.window *app*)) | |
| (root (.init (UIView.))) | |
| (input (.init (UITextField.))) | |
| (output (.init (UITextField.))) | |
| (convert-f-c (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (convert-c-f (UIButton/buttonWithType: UIButtonTypeSystem))) | |
| (.frame= root '((10 200) (300 300))) | |
| (.backgroundColor= root (UIColor/lightGrayColor)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let ((w (.window *app*)) | |
| (root (.init (UIView.))) | |
| (input (.init (UITextField.))) | |
| (output (.init (UITextField.))) | |
| (convert-f-c (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (convert-c-f (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (close (UIButton/buttonWithType: UIButtonTypeSystem))) | |
| (.frame= root '((10 200) (220 200))) | |
| (.backgroundColor= root (UIColor/lightGrayColor)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (let ((w (.window *app*)) | |
| (root (.init (UIView.))) | |
| (input (.init (UITextField.))) | |
| (output (.init (UITextField.))) | |
| (convert-f-c (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (convert-c-f (UIButton/buttonWithType: UIButtonTypeSystem)) | |
| (close (UIButton/buttonWithType: UIButtonTypeSystem))) | |
| (.frame= root '((10 200) (220 200))) | |
| (.backgroundColor= root (UIColor/lightGrayColor)) |