Doug Coleman
4b10899bc8
Merge remote-tracking branch 'origin/master' into modern-harvey3
2018-08-28 21:03:46 -05:00
Doug Coleman
d4729bdde2
cocoa.messages: Add a Cocoa union type to import NSData.
...
Fixes bootstrap for macOS 10.14 for the error:
```
no-objc-type
name "("
```
Fixes #2059 .
2018-08-27 21:03:04 -05:00
Doug Coleman
f05c7e8cd8
factor: char: a -> ch'a.
...
Also all contractions are not allowed in word names anymore. Even Data cannot use contractions...
2018-08-09 18:02:38 -04:00
Doug Coleman
00fb574a8d
factor: SYMBOL: foo foo [ bar ] initialize -> INITIALIZED-SYMBOL: foo [ bar ]
2018-08-04 21:53:05 -04:00
Doug Coleman
924b434336
Revert "factor: vocab:word -> vocab::word"
...
This reverts commit 354f1cbd34 .
2018-08-02 08:21:52 -04:00
Doug Coleman
7730fc5c64
Merge remote-tracking branch 'origin/master' into modern-harvey2
2018-08-02 07:57:42 -04:00
Doug Coleman
f4ac9fcfca
cocoa.messages: fix docs..
2018-07-07 11:16:23 -05:00
Doug Coleman
79db3ca594
docs: fix docs for help-lint
2018-07-07 08:24:20 -05:00
Doug Coleman
6bed1364f2
factor: update syntax.
2018-03-18 23:14:46 -05:00
Doug Coleman
ddfe23ccca
Merge branch 'master' into modern-harvey2
2018-03-15 11:48:24 -05:00
John Benediktsson
d259d7ccec
cocoa: cleanup ?-> syntax and implementation.
2018-03-13 13:21:21 -07:00
John Benediktsson
5e18e609b3
cocoa: change ?-> to always cache stubs in syntax word.
2018-03-13 11:57:40 -07:00
John Benediktsson
268dfecb0b
cocoa.messages: fix for ".cxx_destruct" selector name.
2018-03-13 10:38:33 -07:00
John Benediktsson
365584a644
cocoa.messages: bind classname.methodname selectors also.
...
We currently have a problem which is all selectors are assumed to have
the same method effect. The problem is we can have method collisions,
for example:
NSObject.load is { void { id SEL } }
NSBundle.load is { char { id SEL } }
So, this inferred wrong:
IN: scratchpad [ NSBundle -> mainBundle -> load ] infer .
( -- )
But now we can do this instead:
IN: scratchpad [ NSBundle -> NSBundle.mainBundle -> NSBundle.load ] infer .
( -- x )
It doesn't really fix the original problem, but its a way to workaround
it and added ``method-collisions`` to report on the conflicts.
2018-03-13 10:17:33 -07:00
Doug Coleman
354f1cbd34
factor: vocab:word -> vocab::word
2017-12-29 00:43:25 -08:00
Doug Coleman
5fb483099f
cocoa: Prefer ``send: foo`` or ``send: \foo:`` instead of ``send\ foo:``
2017-08-31 21:21:14 -05:00
Doug Coleman
54ef674a99
cocoa: -> to send\ ?-> to ?send\ SUPER-> to super\
2017-08-31 21:21:13 -05:00
Doug Coleman
c436f6dbad
factor: char: postpone: color: hexcolor: flexhexcolor: decimal:
2017-08-31 21:21:13 -05:00
Doug Coleman
84e40810cd
factor: CHAR: : -> CHAR: \:, same for [{(
2017-08-31 21:21:12 -05:00
Doug Coleman
e189954ecc
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ;
2017-06-02 11:57:05 -05:00
Doug Coleman
d838f95370
cocoa: Allow ?-> syntax for methods that might not exist.
...
If a method doesn't exist we need to provide a signature so the stack is balanced. This should also allow deploying from macOS versions that do not contain methods to ones that do. This is an alternative to asking a class if it provides a selector.
2017-06-01 16:53:05 -05:00
John Benediktsson
e826546c6d
cocoa.messages: simplify (objc-class).
2017-02-11 20:58:25 -08:00
Björn Lindqvist
ddc5ece757
alien.*: frontend varargs support! #1677
...
alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g
: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;
2016-08-10 21:34:37 +02:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
Doug Coleman
6e60c811ac
core: Rename create to create-word, create-in to create-word-in.
2015-06-08 12:47:35 -07:00
John Benediktsson
4a13633e5d
cocoa: cleanup usings.
2014-12-13 16:25:48 -08:00
John Benediktsson
98935b7f15
docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``.
2014-05-18 20:09:10 -07:00
John Benediktsson
88ec7ef7de
cocoa.messages: name sender-stubs by signature since they are cached that way.
2013-04-26 16:56:53 -07:00
John Benediktsson
bf83eaccfc
cocoa: maybe this is cleaner...
2013-03-30 13:44:11 -07:00
John Benediktsson
d94977ac0c
cocoa.messages: fix for deploy problem.
2013-03-30 13:05:04 -07:00
John Benediktsson
d1ae334046
ui.backend.cocoa.views: more robust respondsToSelector: (thanks @jckarter).
2013-03-29 20:34:24 -07:00
John Benediktsson
fe952b2f8e
cocoa.messages: add super-sender for completeness.
2013-03-29 14:45:41 -07:00
John Benediktsson
fe1bfe173b
ui.backend.cocoa.views: simplify and add os version check.
2013-03-29 14:29:41 -07:00
John Benediktsson
886cf4df07
cocoa.messages: some support for runtime message sending.
2013-03-29 14:18:57 -07:00
John Benediktsson
64822a7a30
cocoa.messages: use ERROR:.
2013-03-29 14:18:57 -07:00
Doug Coleman
8012f60829
cococa.messages: Rename selector.
2013-03-23 16:54:55 -07:00
Doug Coleman
e435a7aa59
cocoa.messages: Apply mrjbq's patch to show the name of the cooca function in sender stubs. rename 'method' in stack effects to 'signature' since we are passing an array with the return value and arguments, not the method.
2011-11-21 16:38:16 -08:00
John Benediktsson
80e1c8e3f2
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -07:00
John Benediktsson
4f42c72012
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Philipp Brüschweiler
d2530a4365
Merge remote branch 'origin/native-image-loader' into gtk-image-loader
2010-07-17 11:26:45 +02:00
Slava Pestov
446ee6896d
alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary
2010-07-16 17:32:05 -04:00
Joe Groff
e433b16b42
cocoa.messages: return cocoa char* values as void* instead of c-string
2010-06-27 12:42:14 -07:00
Slava Pestov
70a99e1cdb
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
0cde5c8fb5
Eliminate compiler.alien
2010-05-11 23:24:47 -04:00
Slava Pestov
2b68f56c89
Document (free), move it out of libc.private and mention it in the "c-strings" help article (reported by Blei)
2010-03-30 17:32:51 -04:00
Slava Pestov
fa6c8117aa
cocoa.messages: cleanup
2010-02-24 20:18:48 +13:00
Joe Groff
4cfa1a6c77
rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char
2010-02-23 11:42:02 -08:00
Slava Pestov
1b508b9c37
cocoa.messages: fix
2010-02-22 13:17:46 +13:00
Slava Pestov
0da6f78088
cocoa.messages: if a class cannot be found, IMPORT: no longer fails at parse time. Instead, there will be a runtime error when the class word is executed
2010-02-21 22:27:32 +13:00