Re: What happened to the translator?
- Posted by mtsreborn at yahoo.com Feb 27, 2001
- 415 views
--- codehead78 at YAHOO.COM wrote: > --- mtsreborn at yahoo.com wrote: > <hack> > > > Anyways, I gave up hope on Euphoria, and you > should > > to. > > There are more powerfull tools out there to code > > your > > apps. > I plan to use it for testing algorithms I will later > write in C or C++. I would rather write my own than > have the overhead of Euphoria types. But if the > translator becomes smart enough, it might recognize > the restrictions imposed on types and create the > appropriate type in C. If Rob put out some standard > types the the translator could easily understand it > wouldn't be so difficult. Same here ma man... > <chop> > > > Here's my code, with two sections, wich would give > > away the store, commented out; > > > > /* NightShade */ > > /* Native Interpreter with Garbage-collected */ > > /* Hierarchical Threads in Syntactical Human */ > > /* Alphabetics for Direct Execution */ > > /* Version 1.0 */ > > > > /* By Mike The Spike */ > > > > ... > > /* Function Defines */ > void *ns_malloc(int size) > { > void *ret; > if((ret = malloc(size)) == 0) > { > puts("This program ran out of memory... > "); > exit(1); > } > // You don't need this... > // else > // return ret; > > > return ret; > } > > Just nit picking... > > Good luck, > -Humberto I know... I like, code this malloc/realloc wrapper 20 times a day :p Sometimes I just hurry up and do it wrongly. This is what I rewrote it to now; void *ns_malloc(int size) { void *ret; if((ret = malloc(size)) == 0) { puts("This program ran out of memory..."); exit(0); } return ret; } But it's more like potatoes/tomatoes (huh???), no biggy. Mike The Spike