[REBOL] AW: Core 2.6 - Last minute requests - take your chance!

2002-04-08 Thread Holzammer, Jean

Hi,

Rebol/View has two functions, to-rebol-file and to-local-file. Quite useful
when you write scripts that get filenames as arguments and are still to be
platform independant.

Would be nice to see them in Core, too.

  Ciao, Jean
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] load vs load-thru (vs load path-thru)

2002-04-08 Thread Anton

Hello,

I've come to an inconsistency, I think.
I reckon load-thru should return the same
results as load, and it doesn't.

 site: http://anton.idatam.com.au/rebol/
== http://anton.idatam.com.au/rebol/

 url: site/anim/images/iconDilbert.png
== http://anton.idatam.com.au/rebol/anim/images/iconDilbert.png

 load url
== make image! [64x48 #{

0...

 exists? path-thru url
== false ; not in the public cache

 load-thru/update url
== ‰PNG ; - why this? shouldn't it be an image! as above?

 exists? path-thru url
== true ; now it is in the cache

 load path-thru url  ; ok, so I can get the data in the end...
== make image! [64x48 #{

0...

Anton.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Problems with Dynamic Library Access in View/Pro

2002-04-08 Thread Cyphre

Hi Holger and all on the List,

I have a problem regarding accesing DLLs from View/Pro:

I have this C function(watch out line breaks!):

from .h definition file:
...//this is value needed for the first argument of the funciton
#define DCSDKVersion   0x0154
#else
...//this is the structure needed as a input argument for the function
typedef struct{
 DCCameraType CamType;
 DCCameraType SpecificCamType;
 BOOL   DriverOpenFlag;
 BOOL   CameraOpenFlag;
 BOOL   ROMModeFlag;
} DCDriver, FAR *DCDriverPtr;
...//this is the fuction definition
  DCOpenDriver(
   SHORT FAR * Version,  // This should be passed as the constant
 // DCSDKVersion
   DCDriverPtr Driver   // This is a system dependent structure that
  // contains information about the open
  // driver.
  );

or simmilar stuff in Visual basic interface layer:


Public Const DCSDKVersion = H154
.
Type DCDriver
CamType As Long
SpecificCamType As Long
DriverOpenFlag As Boolean
CameraOpenFlag As Boolean
ROMModeFlag As Boolean
Reserved As Integer
End Type
.
Declare Function DCOpenDriver Lib DC120VBIFLV154_32.DLL Alias
_DCILVBOpenDriver@8 (Version As Integer, Driver As DCDriver) As Integer


So I did this in Rebol(this is for the VB layer but for the direct C dll
calls should be almost the same):

DC120vb.dll: load/library %DC120VBIFLV154_32.dll

DCSDKVersion: 340 ;154 hexadecimal

DCDriverPtr: [0 0 0 0 0]

DCDriver: make struct! [
 CamType [integer!]
 SpecificCamType [integer!]
 DriverOpenFlag  [integer!]
 CameraOpenFlag  [integer!]
 ROMModeFlag  [integer!]
  Reserved [integer!]
] reduce DCDriverPtr

DCOpenDriver: make routine! [
 version [integer!]
 driver [
  struct! [
   CamType [integer!]
   SpecificCamType [integer!]
   DriverOpenFlag [integer!]
   CameraOpenFlag [integer!]
   ROMModeFlag [integer!]
Reserved [integer!]
  ]
 ]
 return: [integer!]
] DC120vb.dll _DCILVBOpenDriver@8

but when trying:

probe DCOpenDriver DCSDKversion DCDriver

...Rebol crashes :-(

only when  DCSDKVersion: 0 I got some strange number(which is different from
the error codes in the sdk) returned from the function.
The crash behavior is the same when I tried it using VB layer or dirctly
call the generc dll :((


Am I doing something wrong? It is a bug of Rebol? Anyone?

Regards

Cyphre


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Google + SOAP

2002-04-08 Thread Graham Chiu

On Sun, 7 Apr 2002 18:28:43 EDT
 [EMAIL PROTECTED] wrote:

 Anyone any idea how to turn this short Ruby program in
 Rebol?
 
 http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/37623
 
 It's an experimental API to the Google database -- could
 be a killer add on.
 
 But I don't know SOAP hardly at all, and I don't know
 Ruby. Do we have the 
 ability at all?
 

I wrote an article on Soap in Rebol. check the Rebzine.

--
Graham Chiu
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-08 Thread Cyphre

Hi List and RT,

What about add the possibility to have /Pro features(when you are owner of
the license key) in the new Core2.6?

Regards,

Cyphre

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] view/list: altering layout possible?

2002-04-08 Thread Robert M. Muench

Hi, I have the following problem and don't know what's the best way to solve it:

- I use a list that has three columns all of type text.
- There are some actions attached to the text faces.

Now I want to insert some rows into my list that use a different row layout. An
image and a text. The problem is that the list style takes one 'layout block and
this one can either be for the text rows or the image row. What know?

I see the following possibilities (disadvantages marked with -, advantages
marked with +)

1. I use one list style with a container like a box and use the box/pane to
insert a single face I build a priori.
+ simple pattern for list style
- need to simulate the 'supply thing of a list where all columns get triggered
- need to create one layouted face that can be inserted into the pane
- need to handle positioning and sizing myself

2. I use one list for the text rows and create single faces for the image rows.
The image rows are than positioned as a layer over the list (at the position
where a image row is placed, the text list will have an empty line) faking the
one-list imagination.
+ simpler to programm
- syncing list scrolling might be tedious

3. Use the following list layout: image text text text and decided within the
'supply function if an image is needed or not. If not I can hide the face (?) or
set the size to 0x0.
+ consistent with list style
- context depending code within gui code
- tricky to understand

What do you think about the three possibilities? Did I miss some other
possibility? Robert

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Rebsite Anton updated, new scripts

2002-04-08 Thread Anton

Ok, this is worth a post.
I have just gone through and updated my rebsite
to complete the move to my new site, and added
lots of scripts that were missing.

Here is where it starts:

http://anton.idatam.com.au/rebol/index.r

and you can navigate to it in the rebol
desktop via Rebol.com/Sites/Anton

Not everything you click on gives instant
results, but there is plenty to click on
all the same.

I am expecting some of you will have some older
files like:
library/graphics.r
library/dir-utils.r
library/trigonometry.r

That will cause a problem. If you reload these ones
specifically, it should fix most problems.

Of course, if something doesn't work, write an email
and let me know.

Regards,

Anton.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] what is 'open-proto? (DocKimbel's MySql)

2002-04-08 Thread Tim Johnson

Hello All:
I am looking DocKimbel's MySql protocols. can't traceback
'open-proto and don't get any feed back from rebol on it
 ? open-proto
No information on open-proto (word has no value)
 source open-proto
open-proto: undefined

Where is info on this 'word ?
TIA
-- 
Tim Johnson [EMAIL PROTECTED]
  http://www.alaska-internet-solutions.com
  http://www.johnsons-web.com
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: REBOL : Pure OOP project ?

2002-04-08 Thread Gregg Irwin

Hi Chris,

 Considering the low number of replies I got from the list regarding this
thread : Class object inheritance library interest ? and the interest shown
in the Business object versionning thread. I begin to think that either
Rebolers are not interested in almost pure OOP with REBOL or that interest
is only limited to one's personal project... 

I thought, when I started with REBOL, that I would build an OOP
infrastructure for my projects (as I had done in the past with other
languages), but the more I've worked with it, the more I've moved away from
that line of thinking. I'm still finding my way with REBOL, from a design
and style perspective, so my view is hardly something to be taken as gospel.
I know that Carl has professed that he is recovering from OOP and the
design of REBOL shows this, while it's flexibility allows you to do OOP
pretty darn well if you want. I can see building an extensive OOP system as
a great challenge, and certainly possible, but I'm not sure the solution
will be as elegant as it otherwise could be. Caveat emptor, I haven't built
any large systems with REBOL, where OOP might really shine.

I look forward to seeing your results if you pursue them.

--Gregg

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: REBOL : Pure OOP project ?

2002-04-08 Thread Tim Johnson

Hello Guys, I haven't been following this thread very closely:
but here are my thoughts on the OOP approach:

I'm designing a DB-based system to service a number of clients,
each with a variety of needs. My hope is to service all of them
with the same application, in which most of the custom code is
re-evaluated global data, rather than code.

It's been a bit of a headache to keep the side effects down.
It seems that every time I make a change, I introduce an error.
More of an OOP approach would make maintenance easier, I'm sure.

My experience with Ansi C (large projects) has taught me that you can do OOP with
any language, but it takes some thought and design. My experience
with C++ (large projects) has taught me that poorly managed or designed
OOP can be a major headache and cause overly-frequent recompiles.

In a word, I'd like to keep a thread on OOP going. 

How can I contribute?
Tim
* Gregg Irwin [EMAIL PROTECTED] [020408 08:42]:
 Hi Chris,
 
  Considering the low number of replies I got from the list regarding this
 thread : Class object inheritance library interest ? and the interest shown
 in the Business object versionning thread. I begin to think that either
 Rebolers are not interested in almost pure OOP with REBOL or that interest
 is only limited to one's personal project... 
 
 I thought, when I started with REBOL, that I would build an OOP
 infrastructure for my projects (as I had done in the past with other
 languages), but the more I've worked with it, the more I've moved away from
 that line of thinking. I'm still finding my way with REBOL, from a design
 and style perspective, so my view is hardly something to be taken as gospel.
 I know that Carl has professed that he is recovering from OOP and the
 design of REBOL shows this, while it's flexibility allows you to do OOP
 pretty darn well if you want. I can see building an extensive OOP system as
 a great challenge, and certainly possible, but I'm not sure the solution
 will be as elegant as it otherwise could be. Caveat emptor, I haven't built
 any large systems with REBOL, where OOP might really shine.
 
 I look forward to seeing your results if you pursue them.
 
 --Gregg
 
 -- 
 To unsubscribe from this list, please send an email to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.

-- 
Tim Johnson [EMAIL PROTECTED]
  http://www.alaska-internet-solutions.com
  http://www.johnsons-web.com
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: what is 'open-proto? (DocKimbel's MySql)

2002-04-08 Thread Petr Krenzelok

Tim Johnson wrote:

Hello All:
I am looking DocKimbel's MySql protocols. can't traceback
'open-proto and don't get any feed back from rebol on it
 ? open-proto
No information on open-proto (word has no value)
 source open-proto
open-proto: undefined

Where is info on this 'word ?
TIA

print mold root-protocol

You should also look at rebolforces article to see how custom protocol 
handlers can be created. Watch out for Rebol 3.0 though, where protocols 
will be async. I don't know though, how it will affect current API, e.g. 
above mentioned root-protocol. Holger should know though :-)

-pekr-


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] rebol/core 2.6 ?

2002-04-08 Thread David Oliva

Does anybody know, when will be the new announced rebol/core build
available?

thanks... Oldes


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Curl

2002-04-08 Thread rebol-list

Hello Jason,

Wednesday, April 03, 2002, 6:29:41 AM, you wrote:

JC http://www.curl.com/html/


What it should be? I downloaded some installation (plugin?) and tried
to install it offline and it was still trying to connect somewhere and
finally stop with message that I must be conected I don't like
such a software behaviours:-(

Oldes

-- 
Best regards,
 rebol-listmailto:[EMAIL PROTECTED]


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Core 2.6 - Last minute requests - take your chance!

2002-04-08 Thread rebol-list

Just please fix possibility to load block with word: ' (left shift)
---
 load [ ]
** Syntax Error: Invalid tag -- 
** Near: (line 1) load [ ]
 load [ ]
== []
---
and this one is most wanted as well:
 x: load [a,a]
** Syntax Error: Invalid word -- a,a
** Near: (line 1) load [a,a]
( rather to return: [a , b] where second x == ', )

...so we will have possibility to load whatever text file and parse it

and maybe rejoin/with
rejoin/with [a b] #/
== a/b

thanks oldes


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: REBOL : Pure OOP project ?

2002-04-08 Thread Christian Morency

Hi Tim,

 I'm designing a DB-based system to service a number of clients,
 each with a variety of needs. My hope is to service all of them
 with the same application, in which most of the custom code is
 re-evaluated global data, rather than code.

 It's been a bit of a headache to keep the side effects down.
 It seems that every time I make a change, I introduce an error.
 More of an OOP approach would make maintenance easier, I'm sure.

I gather that your functions must do a lot of code ? OOP/Methods, when
clearly designed, limits development by favoring reuse. This is one of the
thing I need for my project.

 My experience with Ansi C (large projects) has taught me that you
 can do OOP with
 any language, but it takes some thought and design. My experience
 with C++ (large projects) has taught me that poorly managed or designed
 OOP can be a major headache and cause overly-frequent recompiles.
 In a word, I'd like to keep a thread on OOP going.

Me too ;)

 How can I contribute?

Any ideas on how OOP could work in Rebol is welcomed...

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: REBOL : Pure OOP project ?

2002-04-08 Thread Christian Morency

Hi,

Forgot to say something about my current implementation ...

The worst/best part is that it does not support function refinements !

I can understand the power of refinements, and have even used it for some
small scripts... but at the same time I don't like it... I have found that
most of the time, refinements are simply booleans with further arguements.
Furthermore, they are usually used in functions that does too much ! I
prefer small functions that do less...

Best,
Chris

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: REBOL : Pure OOP project ?

2002-04-08 Thread Christian Morency

Hi Gregg,

 I thought, when I started with REBOL, that I would build an OOP
 infrastructure for my projects (as I had done in the past with other
 languages), but the more I've worked with it, the more I've moved
 away from
 that line of thinking. I'm still finding my way with REBOL, from a design
 and style perspective, so my view is hardly something to be taken
 as gospel.

I find myself in the same situation as you (my view is not to be taken as
gospel), however I do find myself in a position where my project would
benefit from a better implementation of OOP for Rebol... And furthermore,
I have decided that if I need such an infrastructure, better share with my
fellow rebolers.

 I know that Carl has professed that he is recovering from OOP and the
 design of REBOL shows this, while it's flexibility allows you to do OOP
 pretty darn well if you want. I can see building an extensive OOP
 system as
 a great challenge, and certainly possible, but I'm not sure the solution
 will be as elegant as it otherwise could be. Caveat emptor, I
 haven't built
 any large systems with REBOL, where OOP might really shine.

I know about Carl's recovering, we have yet to know if he has fully
recovered ;) I can understand his point of view and respect his decision for
Rebol. However, I'm a bit of a doubting Thomas, and since I daily work in
OOP and I daily see it's results and qualities for a delivered product, I'm
a believer.

Furthermore, I'm quite happy he has offer us basic OOP functionality in
Rebol, if it wasn't for these, I would have probably liked Rebol for small
projects/scripts, but not for big ones/applications and I have a big one in
mind ;)

Why Rebol and not another pure OOP languages ? Because I like Rebol, I'm a
believer !

 I look forward to seeing your results if you pursue them.

Thanks, I hope I can achieve an infrastructure which will interest others !

Best regards,
Chris

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.