[REBOL] Re: Ready for REBOL/Core 2.6?
Hello Cyphre, Friday, March 08, 2002, 10:34:35 AM, you wrote: C> Holger(RT), C> I forgot one very useful feature which would probably lot of rebolers love C> to have in new Rebol/Core. I mean the possibility to add new words to C> specified context...something like: C> extend object [new-word: value] and what about: >> obj: context [a: 1] >> probe make obj [b: 2] make object! [ a: 1 b: 2 ] so you can have function: >>extend: func[obj [object!] blk [block!]][make obj blk] >>probe extend obj [c: 3] make object! [ a: 1 c: 3 ] I think that should be enough in most cases. I would rather appreciate some native for converting numbers to binary! Oldes -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf > Of Louis Cyphre > Sent: Saturday, March 09, 2002 12:21 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: [REBOL] Re: Ready for REBOL/Core 2.6? > I think "extend" will be very useful ;-) Especially in /View > applications where is whole graphical layout constructed from > objects(faces). Hi, IIRC I have posted this snippet several times already. But anyway, here it's once again: Is this what you are looking for? extend-object: func ['obj-word [word!] 'word [word!] value [any-type!] /local the-obj][ all [not object? the-obj: get obj-word make error! "No object provided."] if in the-obj word [ set in the-obj word value return the-obj ] set obj-word make the-obj reduce [to-set-word word value] ] -- Robert M. Münch IT & Management Freelancer Mobile: +49 (0)177 2452 802 Fax : +49 (0)721 8408 9112 Web : http://www.robertmuench.de -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: [REBOL] Re: Ready for REBOL/Core 2.6?
Hi Porter, > > But - what "extend" would get us is the ability to dynamically alter > existing objects from their blue prints, after they have been created. It'd > be cool, but I'm not sure it'd be of much value. If you were finding > yourself doing that a lot I suspect you may be better off just adding that > function or variable to the prototype object. > I think "extend" will be very useful ;-) Especially in /View applications where is whole graphical layout constructed from objects(faces). The possibility of dynammically changing this structure without rebuliding it from their blueprints is in some advanced /View techniques absolutely a must. I think this will be also a lot of faster to add variable to for example big database object than rebulid the whole structure using object template... regards Cyphre __ SMSvsítiOskarza1,50Kč! Vtýdnusmskovatvjednomkuse http://ad2.seznam.cz/redir.cgi?instance=20854%26url=http://www.oskarmobil.cz/cz/products/i_index.htm -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Gregg > The issue, as I understand it, is that you can't add new functions and > variables to TIMER. It's set of words is fixed when it is created and cannot > be extended. You would have to create a new object, based on TIMER, in order > to add new words to it. Yeah, I realized that - but it's not so different that the static inheritance found in other OO languages. Unless I was to use "timer: make example [newvar: 1000]" when I cloned the object, I can't add new variables or functions to it. What would be handy is if append and other block/series related functions could work against objects. Sure, having an "extend" macro that perhaps automated the appending of new variables and functions (or even the overriding and extension of extisting ones) would definitely be handy in that case. Currently the Rebol object doesn't loose much over other, existing, object models. If we think of our object declarations as "classes" and treat them as somewhat static blue-prints then they behave almost exactly as a "class" in another language. You can build a fairly complex heirarchy that way. Then, when you use them, think of using it like - "someobject: make myclass []" as though you are calling "new" against the class, and creating an instance of it. But - what "extend" would get us is the ability to dynamically alter existing objects from their blue prints, after they have been created. It'd be cool, but I'm not sure it'd be of much value. If you were finding yourself doing that a lot I suspect you may be better off just adding that function or variable to the prototype object. - Porter Woodward -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Hi Porter, << In this case, "example" is being used as a prototype object. It is cloned (rather a new instance of it is created) as "timer". In theory (unless I'm missing something) "timer" is now seperate from the original "example" and can be modified independently. New variables and functions can be added to "timer" without affecting "example". >> The issue, as I understand it, is that you can't add new functions and variables to TIMER. It's set of words is fixed when it is created and cannot be extended. You would have to create a new object, based on TIMER, in order to add new words to it. --Gregg -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On Fri, Mar 08, 2002 at 01:43:34AM -0500, Jason Cunliffe wrote: > > > Is it possible to have "Clipboard://" feature in > > > this REBOL/Core 2.6? > > > > No, because Unix requires an X11 server for clipboard support. > > View supports X11 and the clipboard, but Core does not. If Core > > was linked against X11 libraries then it could not be used on > > servers that do not have X11 installed. > > Will the next release of /View support binary data via clipboard:// ? Image data ? Possibly. The problem is that this is highly platform-dependent. -- Holger Kruse [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
> On Fri, Mar 08, 2002 at 10:34:35AM +0100, Cyphre wrote: > > Holger(RT), > Carl may have been exaggerating there. The reason why objects cannot be > extended is the same reason why there is currently a limit on the number > of words in the system (which, btw, will be increased from 4000 to 8000 > in Core 2.6). We do intend to lift these restrictions, but doing so is not > trivial, and it most likely won't be in 2.6. How would extend be significantly different than using the following? ; start example example: make object! [ the-time: now/time set-time: does [the-time: now/time] ] timer: make example [] ; end example In this case, "example" is being used as a prototype object. It is cloned (rather a new instance of it is created) as "timer". In theory (unless I'm missing something) "timer" is now seperate from the original "example" and can be modified independently. New variables and functions can be added to "timer" without affecting "example". Now, I realize this isn't quite the same as // Start Example class MyOldObject { public Timestamp theTime = new Timestamp(System.currentTimeMillis()); public void setTheTime() { this.theTime.setTime(System.currentTimeMillis()); } } class MyNewObject extends MyOldObject { } // End Example Because - in Java there is a difference between a class and an object. The class is a blueprint, the object is an instance. In Rebol this distinction is blurred. Using make object! essentially creates the class/object at the same time - the word you are defining is both a class and an instance of that class all at once. So - when you choose to make a new word/value pairing (like timer: make example []) you're in effect creating a new class and instance of that class all in one. You can then freely override the variables and functions of the newly created object as you see fit... Sorry to ramble so much - and I could be dead wrong, but this is just the way Rebol seems to behave when compared to other languages. - Porter Woodward -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On Fri, Mar 08, 2002 at 11:21:04AM -0500, [EMAIL PROTECTED] wrote: > Holger, > > can you elucidate, why is there currently a limit on the number of words and the >ability to extend object? > > it often occurs to me that REBOL is would be a much better / more concise / compact >meta-language than XML except that XML can have potentially infinite words & tags >wheras REBOL is bounded by upper limits. It's an implementation detail, not a result of language design. We expect to resolve this issue in one of the next releases. -- Holger Kruse [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Holger, can you elucidate, why is there currently a limit on the number of words and the ability to extend object? it often occurs to me that REBOL is would be a much better / more concise / compact meta-language than XML except that XML can have potentially infinite words & tags wheras REBOL is bounded by upper limits. Any expanded explanation would be appreciated. thanks, Mark Dickson In a message dated Fri, 8 Mar 2002 9:48:27 AM Eastern Standard Time, Holger Kruse <[EMAIL PROTECTED]> writes: > On Fri, Mar 08, 2002 at 10:34:35AM +0100, Cyphre wrote: > > Holger(RT), > > > > I forgot one very useful feature which would probably lot of rebolers love > > to have in new Rebol/Core. I mean the possibility to add new words to > > specified context...something like: > > > > extend object [new-word: value] > > > > I remember Carl said on about this feature some time ago at old /Express > > conference: > > > > ""I've wanted that for several years. Just not had the time to code it... > > but would only take an hour to add." > > > > So will be possible to postpone the release of new /Core by an hour? ;-) > > Carl may have been exaggerating there. The reason why objects cannot be > extended is the same reason why there is currently a limit on the number > of words in the system (which, btw, will be increased from 4000 to 8000 > in Core 2.6). We do intend to lift these restrictions, but doing so is not > trivial, and it most likely won't be in 2.6. > > -- > Holger Kruse > [EMAIL PROTECTED] > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
> > Is it possible to have "Clipboard://" feature in > > this REBOL/Core 2.6? > > No, because Unix requires an X11 server for clipboard support. > View supports X11 and the clipboard, but Core does not. If Core > was linked against X11 libraries then it could not be used on > servers that do not have X11 installed. Will the next release of /View support binary data via clipboard:// ? Essential for /View image cut n paste ./Jason -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On Fri, Mar 08, 2002 at 10:34:35AM +0100, Cyphre wrote: > Holger(RT), > > I forgot one very useful feature which would probably lot of rebolers love > to have in new Rebol/Core. I mean the possibility to add new words to > specified context...something like: > > extend object [new-word: value] > > I remember Carl said on about this feature some time ago at old /Express > conference: > > ""I've wanted that for several years. Just not had the time to code it... > but would only take an hour to add." > > So will be possible to postpone the release of new /Core by an hour? ;-) Carl may have been exaggerating there. The reason why objects cannot be extended is the same reason why there is currently a limit on the number of words in the system (which, btw, will be increased from 4000 to 8000 in Core 2.6). We do intend to lift these restrictions, but doing so is not trivial, and it most likely won't be in 2.6. -- Holger Kruse [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On Sat, Mar 09, 2002 at 02:34:14AM +1200, Carl Read wrote: > What about save/png? Anyone know if that'll be in? Be nice to be > able to do simple things to a bitmap and then save it as a PNG for > inclusion in a webpage. Core does not have any image manipulation functions. If you want to perform image manipulations in automated environments, without X11 installed, then you need to use Command. -- Holger Kruse [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On 08-Mar-02, Petr Krenzelok wrote: > Cyphre wrote: >> Hello Holger and all, >> Will be too difficult to add into Rebol/Core 2.6 "make/deep" >> feature for >> creating nested object structures? Are you even planning to add >> such feature >> to Rebol? > I asked Carl in IOS messenger, and he told me something like it > would a little bit complicate make function or so, so I suggested to > use new word, e.g. 'clone. Well, from the comfort of use pov, > make/deep and ability to extend objects are most essential missing > parts in rebol/core imo What about save/png? Anyone know if that'll be in? Be nice to be able to do simple things to a bitmap and then save it as a PNG for inclusion in a webpage. -- Carl Read -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Parse Nirvana: I'd like the restriction of the most complex rule first (the one with subrules) removed. Or documented ;-) --Maarten > > > Cyphre wrote: > > > Hello Holger and all, > > > > Will be too difficult to add into Rebol/Core 2.6 "make/deep" feature for > > creating nested object structures? Are you even planning to add such feature > > to Rebol? > > I asked Carl in IOS messenger, and he told me something like it would a little > bit complicate make function or so, so I suggested to use new word, e.g. 'clone. > Well, from the comfort of use pov, make/deep and ability to extend objects are > most essential missing parts in rebol/core imo (my third favorite one is with > parse and ability to match first occurance of [a | b | c] :-) > > -pekr- > > > > > > > Regards, > > > > Cyphre > > > > - Original Message ----- > > From: "Holger Kruse" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, March 08, 2002 6:00 AM > > Subject: [REBOL] Re: Ready for REBOL/Core 2.6? > > > > > On Thu, Mar 07, 2002 at 10:42:51PM -0500, iNetW3 wrote: > > > > > > > > We are gearing up to release REBOL/Core 2.6. This is the same > > > > > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). > > > > > > > > Hello Carl and Rebolers', > > > > > > > > Is it possible to have "Clipboard://" feature in > > > > this REBOL/Core 2.6? > > > > > > No, because Unix requires an X11 server for clipboard support. > > > View supports X11 and the clipboard, but Core does not. If Core > > > was linked against X11 libraries then it could not be used on > > > servers that do not have X11 installed. > > > > > > -- > > > Holger Kruse > > > [EMAIL PROTECTED] > > > -- > > > To unsubscribe from this list, please send an email to > > > [EMAIL PROTECTED] with "unsubscribe" in the > > > subject, without the quotes. > > > > > > > > > > -- > > To unsubscribe from this list, please send an email to > > [EMAIL PROTECTED] with "unsubscribe" in the > > subject, without the quotes. > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Cyphre wrote: > Hello Holger and all, > > Will be too difficult to add into Rebol/Core 2.6 "make/deep" feature for > creating nested object structures? Are you even planning to add such feature > to Rebol? I asked Carl in IOS messenger, and he told me something like it would a little bit complicate make function or so, so I suggested to use new word, e.g. 'clone. Well, from the comfort of use pov, make/deep and ability to extend objects are most essential missing parts in rebol/core imo (my third favorite one is with parse and ability to match first occurance of [a | b | c] :-) -pekr- > > > Regards, > > Cyphre > > - Original Message - > From: "Holger Kruse" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 08, 2002 6:00 AM > Subject: [REBOL] Re: Ready for REBOL/Core 2.6? > > > On Thu, Mar 07, 2002 at 10:42:51PM -0500, iNetW3 wrote: > > > > > > We are gearing up to release REBOL/Core 2.6. This is the same > > > > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). > > > > > > Hello Carl and Rebolers', > > > > > > Is it possible to have "Clipboard://" feature in > > > this REBOL/Core 2.6? > > > > No, because Unix requires an X11 server for clipboard support. > > View supports X11 and the clipboard, but Core does not. If Core > > was linked against X11 libraries then it could not be used on > > servers that do not have X11 installed. > > > > -- > > Holger Kruse > > [EMAIL PROTECTED] > > -- > > To unsubscribe from this list, please send an email to > > [EMAIL PROTECTED] with "unsubscribe" in the > > subject, without the quotes. > > > > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Hello Holger and all, Will be too difficult to add into Rebol/Core 2.6 "make/deep" feature for creating nested object structures? Are you even planning to add such feature to Rebol? Regards, Cyphre - Original Message - From: "Holger Kruse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 08, 2002 6:00 AM Subject: [REBOL] Re: Ready for REBOL/Core 2.6? > On Thu, Mar 07, 2002 at 10:42:51PM -0500, iNetW3 wrote: > > > > We are gearing up to release REBOL/Core 2.6. This is the same > > > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). > > > > Hello Carl and Rebolers', > > > > Is it possible to have "Clipboard://" feature in > > this REBOL/Core 2.6? > > No, because Unix requires an X11 server for clipboard support. > View supports X11 and the clipboard, but Core does not. If Core > was linked against X11 libraries then it could not be used on > servers that do not have X11 installed. > > -- > Holger Kruse > [EMAIL PROTECTED] > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
Holger(RT), I forgot one very useful feature which would probably lot of rebolers love to have in new Rebol/Core. I mean the possibility to add new words to specified context...something like: extend object [new-word: value] I remember Carl said on about this feature some time ago at old /Express conference: ""I've wanted that for several years. Just not had the time to code it... but would only take an hour to add." So will be possible to postpone the release of new /Core by an hour? ;-) regards, Cyphre - Original Message - From: "Holger Kruse" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 08, 2002 6:00 AM Subject: [REBOL] Re: Ready for REBOL/Core 2.6? > On Thu, Mar 07, 2002 at 10:42:51PM -0500, iNetW3 wrote: > > > > We are gearing up to release REBOL/Core 2.6. This is the same > > > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). > > > > Hello Carl and Rebolers', > > > > Is it possible to have "Clipboard://" feature in > > this REBOL/Core 2.6? > > No, because Unix requires an X11 server for clipboard support. > View supports X11 and the clipboard, but Core does not. If Core > was linked against X11 libraries then it could not be used on > servers that do not have X11 installed. > > -- > Holger Kruse > [EMAIL PROTECTED] > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
On Thu, Mar 07, 2002 at 10:42:51PM -0500, iNetW3 wrote: > > We are gearing up to release REBOL/Core 2.6. This is the same > > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). > > Hello Carl and Rebolers', > > Is it possible to have "Clipboard://" feature in > this REBOL/Core 2.6? No, because Unix requires an X11 server for clipboard support. View supports X11 and the clipboard, but Core does not. If Core was linked against X11 libraries then it could not be used on servers that do not have X11 installed. -- Holger Kruse [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: Ready for REBOL/Core 2.6?
- Original Message - From: Carl Sassenrath <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 06, 2002 12:41 PM Subject: [REBOL] Ready for REBOL/Core 2.6? > We are gearing up to release REBOL/Core 2.6. This is the same > REBOL kernel used for REBOL/Link and REBOL/Serve (in IOS Express). Hello Carl and Rebolers', Is it possible to have "Clipboard://" feature in this REBOL/Core 2.6? I believe Rebol can be used on the web/browser for what it was intended for, retrieving browser/webApp data as a (*dialect messaging object for data binding). *DMO/dataType messenger. By serializing (to-series!) XHTML/XML (the dialect) making it into dataType data no one has to spend too much time with other tools to make webApps/Browsers do what they should already be doing,-- > (DOM scripting, Dhtml push/pull GUI)<--- from the web page to or from the client. Rebol should change XHTML/XML dialects to pure Rebol scripts before its downloaded to the client and vice versa to the server in the web. The purpose for clipboard//:? Right now that's the best way I came up with getting the %.r onto the client and into Rebol to execute it and add it back to the DOM. Hey, it works for me Unless some ones willing to write rebol as a Rebol/script (XSLtype) API dialect? that's a lot for one person, can we get clipboard:// support please for R/Core or is there a work around? if all i had to write was = http://www.rebol.com/news> //gets page title What's Rebol up to? //find first image style:absolute left="50" top="95" mouseover "click and change image" mouseup change image/1 http://www.rebolforces.com/image/1 //thru first heading to first para style: block <#H*/1 > ... just an idea. while im at MSN.com i see a Rebol Ad and click it. By clicking, it downloads/copies/executes %.r and the browser/webapp pastes the new page into the same page as new data. COOL. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.