I'm reading through the online tutorial
http://www.cplusplus.com/doc/tutorial
It's interesting, I guess, though not as interesting as Shogun.

It is reassuring, and unsettling, that you can mix C and C++.
Here is a little program that is a mix of both, yet it compiles and runs fine.

--------------------------------------------------
#include <iostream>
#include <string>
#include <stdio.h>

using namespace std;

void duplicate( int& a, int& b)
{
a *= 2;
b *= 2;
}

int main()
{
string s;
getline(cin, s);
cout << s << endl;
int x = 6, y(7);
duplicate(x, y);
printf("%d,%d\n", x, y);
}
--------------------------------------------------

The point for us is that jsdom.c and jsdom.cpp
might not have to be very different at all,
since most of the c should carry along.
Maybe we can get lucky and just change the calls to the js engine.

Karl Dahlke
_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to