[REBOL] Re: [Truth test fails]

2004-05-19 Thread Christian Ensel
Hi Tim, | What would be the use for that feature? | It's usefull e.g. when you MOLD or SAVE what you want to LOAD easily: mold none == none mold/all none == #[none] type? load mold none == word! type? load mold/all none == none! save/all %/c/test.r none load %/c/test.r == none

[REBOL] AW: frustrating pairs...

2004-05-07 Thread Christian Ensel
Dear Alain, either d = 'x [bx/pane/offset/x: - tmp * sf/data ] [ ; how to improve that ? bx/pane/offset/y: - tmp * sf/data ] The function MIX-PAIRS as defined below takes two PAIR!s and a word of value X or Y. Depending on the latter MIX-PAIRS returns a new PAIR!

[REBOL] Re: Bidirectional value mapping.

2003-11-03 Thread Christian Ensel
Hi Bruno, doing it in the SELECT-way is nice but you should consider using it with the /SKIP-refinement. Without this you may end up with surprising results if one value may occur in value-1 and value-2 position as in ; that's-life: [cats birds cats birds

[REBOL] Re: How to check function arguments? - Syntax REBOLution ...

2002-06-10 Thread Christian Ensel
Hi [Ladislav Romano Gabriele], On monday, 10-Jun-02, 07:48:53, Ladislav Mecir wrote: my essay http://www.rebolforces.com/~ladislav/argstake.html describes how Rebol functions take their arguments. Not that for one single moment I thought I've discovered a not so well-known rebol behaviour

[REBOL] Re: pseudo-class inheritance at a price ?

2001-10-09 Thread Christian Ensel
to the networking problem as well, because everyone who wants to work with such class based objects knows where to get the class definition. Or am I missing something? Regards, Christian (Ensel :) -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe

[REBOL] Re: pseudo-class inheritance at a price ?

2001-10-07 Thread Christian Ensel
Hello Christian Morency, some months ago I worked an a similiar project, you can find my code at the bottom of this mail. It's not very complete, but it may inspire you in a way or two :) As I mentioned in another post earlier, I've been working for the past three weeks on a pseudo class

[REBOL] Re: Complex Series XML Parsing?

2001-03-08 Thread Christian Ensel
Hi Terry Brownell, on wednesday, 07-Mar-01, 23:48:09, Terry Brownell wrote on subject "[REBOL] Complex Series XML Parsing?": so that we get... thexml: [ tag1"This is some string" tag2"with embedded tags" tag1"and another" tag3"with this string" tag1"ending with this

[REBOL] BUG: parse-xml exposes words 'parent and 'paroot to global context

2001-03-03 Thread Christian Ensel
Hello list, I just noticed that 'parse-xml exposes the words 'parent and 'paroot to the global context. I'm not sure if this has already been addressed by someone - however, I consider this to be a bug, therefore I cc'd this mail to [EMAIL PROTECTED] What do you think? Regards, Christian

[REBOL] Re: Help required for a little parsing problem

2000-11-18 Thread Christian Ensel
Hello Nigel, Whilst I could probably write a (long) solution I'm sure there must be an elegant couple of line Rebol solution - one problem is that there may be any number of links in the post. I'm not sure whether it's elegant :) At least it's a couple of lines and does the trick for

[REBOL] Re: Help required for a little parsing problem

2000-11-18 Thread Christian Ensel
Hallo Nigel, Andrew's version is even shorter than mine, doing it by just 'change -ing instead of 'remove -ing and 'insert -ing. Nevertheless, here's my version with additinal comments: parse post [ any; apply the following rule 0 or more times [ to

[REBOL] XML-processor toy. Or: RFC

2000-11-17 Thread Christian Ensel
give a hint to what it can do some day in far future. xml-data: {?xml version="1.0" standalone="yes"? !DOCTYPE test [ !ENTITY ME "Christian Ensel" !ELEMENT che:money ANY !ATTLIST che:money che:currency CDATA "USD" che:am

[REBOL] to-file none? Re:

2000-07-10 Thread Christian . Ensel
Hello Robert, on 10-Jul-00 You wrote: How do I do this now? Simply write Your own 'to-file :) Okay, this may look like: my-to-file: func [ "Converts to file value, skipping NONEs." value "Value to convert." /local block val ][ either block? value [ block: copy []

[REBOL] Does rebol --do print 123 for e.g. work for ya? Re:

2000-07-06 Thread Christian . Ensel
Hello [EMAIL PROTECTED] On 06-Jul-00, You wrote: I am just curious if running rebol with command line parameters work for you? I get following error: REBOL --do "print 123" works fine for REBOL/Core 2.3.0.1.1 22-Jun-2000 ; i.e. Amiga 68020+ version As does DEMO disabled REBOL/View

[REBOL] Objects, Making-Of Re:(4)

2000-07-04 Thread Christian . Ensel
Hello [EMAIL PROTECTED], On 04-Jul-00, You wrote: Your results differ from mine, I would suggest you to try once more... How embarassing! The differences are because of a typo and wrong cutting/pasteing, sorry! --- Start -- a: 0 f: func [] [a] o1: make object! [a: 1 g: func [] [a]] o1/g

[REBOL] Objects, Making-Of Re:(6)

2000-07-04 Thread Christian . Ensel
Hello [EMAIL PROTECTED], On 04-Jul-00, You wrote: The explanation #2: [...] , but Source then created a bit different representation of that. Oh, I like this explanation. I already learned that 'source doesn't always show the excact source code which was assigned to a word (e.g. a: make

[REBOL] Objects, Making-Of

2000-07-03 Thread Christian . Ensel
Hi Rebols, while playing around with objects, I trapped into this: f: func [] [print "Hello!"] f Hello! spec: [] == [] append spec to-set-word 'attribute == [attribute:] append spec 5 == [attribute: 5] append spec to-set-word 'function == [attribute: 5 function:] append spec :f ==

[REBOL] Objects, Making-Of Re:(2)

2000-07-03 Thread Christian . Ensel
Hi Ladislav, 1) you shouldn't redefine Function (a Rebol mezzanine), but that didn't cause your trouble This was just to use speaking names for the example :) 2) the problem has nothing in common with contexts. Obviously I'm still not able to assume correctly where my problems with Rebol

[REBOL] Objects, Making-Of Re:(2)

2000-07-03 Thread Christian . Ensel
Hello [EMAIL PROTECTED]! On 03-Jul-00, You wrote: [...] The two blocks look the same, but they aren't. [...] That's what was irritating me ... But now the context thing comes in for real, ;-) Look at the following console session -- Start of console session -- a: 0 f: func [] [a] o1:

[REBOL] Objects, Making-Of Re:(4)

2000-07-03 Thread Christian . Ensel
Hello [EMAIL PROTECTED], On 03-Jul-00 You wrote: [...] Your approach should preferrably be: append spec reduce ['func third :f second :f] [...] ^ This one will suit my needs, I think. third :f is even better than first :f, of course! Thank You very much!