Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7554 > unrolled thread

Codeblocks

Started bydengler <dewo001@hotmail.com>
First post2014-11-30 21:01 +0100
Last post2014-12-02 00:52 +0100
Articles 5 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Codeblocks dengler <dewo001@hotmail.com> - 2014-11-30 21:01 +0100
    Re: Codeblocks "Johan Nel" <johan.nel@xsinet.co.za> - 2014-12-01 04:25 +0200
    Re: Codeblocks "Wolfgang Riedmann" <wriedmann@gmail.com> - 2014-12-01 08:14 +0100
    Re: Codeblocks Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-12-01 09:32 +0000
    Re: Codeblocks dengler <dewo001@hotmail.com> - 2014-12-02 00:52 +0100

#7554 — Codeblocks

Fromdengler <dewo001@hotmail.com>
Date2014-11-30 21:01 +0100
SubjectCodeblocks
Message-ID<j5tm7apu76cdvc84d9500dqq9hnn8s9kho@4ax.com>
Hi !
One big question about codeblocks and the evolution of this data
structure!

How is this data structure changed from clipper to vo and vulcan.

For Clipper, there are some hints like compiled pCode. 

But how was this structure transformed to vo and now to vulcan?

Is it also compiled pCode? 

Similar structures i do not find in other computer languages. Are
other terms used i have to look for!

How does Vulcan transform this with the tools of the dotnet framework?
Or in other words: if i write in c# which construct is equivalent to
codeblocks?

Thanks
Wolfgang

[toc] | [next] | [standalone]


#7555

From"Johan Nel" <johan.nel@xsinet.co.za>
Date2014-12-01 04:25 +0200
Message-ID<m5gjja$mcq$1@dont-email.me>
In reply to#7554
Hi Wolfgang,

There are very few differences between Clipper, VO and Vulcan syntax.

Clipper:
cb := {|i| i := i + 1}
?Eval(cb, 10)

VO:
You can only call Functions/Procedures inside codeblocks if they declared as 
CLIPPER calling convention or NOT-STRICT calling.

Vulcan:
Enhanced.
You can call any class/method/function/procedure that is part of your 
application.
There is a method to include also dynamic loaded libraries.  They in general 
not available, because they loaded after the macro compiler was loaded.

There is not really a similar implementation in any other language.  Closest 
is a ptr to a function that you pass around.
However you have the macro runtime compiled codeblocks that are difficult to 
beat:
cbstr := "{|o| o:DoSomeMethod()}"
cb := &(cbStr)
cb:Eval(oSomeObject)

CLASS SomeClass{}
  METHOD DoSomeObject() CLASS SomeClass
   MessageBox.Show("Hello World")
  RETURN
END CLASS

Feel free to ask if there is anything specific you would like to know.

Regards,

Johan Nel
Vulcan VIP
Durban, South Africa.

"dengler" <dewo001@hotmail.com> wrote in message 
news:j5tm7apu76cdvc84d9500dqq9hnn8s9kho@4ax.com...
> Hi !
> One big question about codeblocks and the evolution of this data
> structure!
>
> How is this data structure changed from clipper to vo and vulcan.
>
> For Clipper, there are some hints like compiled pCode.
>
> But how was this structure transformed to vo and now to vulcan?
>
> Is it also compiled pCode?
>
> Similar structures i do not find in other computer languages. Are
> other terms used i have to look for!
>
> How does Vulcan transform this with the tools of the dotnet framework?
> Or in other words: if i write in c# which construct is equivalent to
> codeblocks?
>
> Thanks
> Wolfgang



---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com

[toc] | [prev] | [next] | [standalone]


#7556

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2014-12-01 08:14 +0100
Message-ID<ce2ipoF5qoaU1@mid.individual.net>
In reply to#7554
Hi Wolfgang,

> One big question about codeblocks and the evolution of this data
> structure!
> 
> How is this data structure changed from clipper to vo and vulcan.
> 
> For Clipper, there are some hints like compiled pCode. 
> 
> But how was this structure transformed to vo and now to vulcan?
> 
> Is it also compiled pCode? 

I think so - at least it is a proprietary piece

> Similar structures i do not find in other computer languages. Are
> other terms used i have to look for!
> 
> How does Vulcan transform this with the tools of the dotnet framework?
> Or in other words: if i write in c# which construct is equivalent to
> codeblocks?

Vulcan has also a runtime macro compiler as it has VO and Clipper.

Not all Vulcan datatypes are transportable to C# and VB.Net - dynamic
arrays are also not available.

Vulcan.NET needs the runtime macro compiler to update the indexes in
the DBF RDDs, because it needs to "translate" the index expression
(stored as string) to code and apply it to the record content.

Wolfgang



-- 

[toc] | [prev] | [next] | [standalone]


#7557

FromMalcolm G <malcolm-news2012delete@delete.jobstream.com>
Date2014-12-01 09:32 +0000
Message-ID<8BWew.32331$cb2.6009@fx03.am4>
In reply to#7554
On 30/11/2014 20:01, dengler wrote:
> How does Vulcan transform this with the tools of the dotnet framework?
> Or in other words: if i write in c# which construct is equivalent to
> codeblocks?

Do you mean runtime code blocks or compile time code blocks?

For compile time I would think about
closures/lamba

e.g. http://www.codethinked.com/c-closures-explained

I think runtime vulcan codeblocks may be compiled to .net CLR code
rather than a proprietary code but I am not sure.

and here is an example of a way in c# of doing somthing like runtime
code blocks
http://www.codeproject.com/Tips/715891/Compiling-Csharp-Code-at-Runtime

[toc] | [prev] | [next] | [standalone]


#7563

Fromdengler <dewo001@hotmail.com>
Date2014-12-02 00:52 +0100
Message-ID<4utp7al3k8fo0aa6evc1l5hqf36atp500e@4ax.com>
In reply to#7554
Thank you for the information

If I understand correctly then in VO it is a piece of compiled code
with a pointer adress, in vulcan it is IL code. 

Wolfgang

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web