Original date:2021-02-21 22:50:26 Edited by: irv Subject: Re: [phix] if 'number' then why not 'list' ?

katsmeow said...

Since i was working around the type system to make shared variables possible, i first considered type. But type as implemented in OE, doesn't let the programmer know the variable name being type-checked. I had to jump hoops to get that data. And the code written (procedures and functions) aren't exclusively naturally available to the variable the type check was written for. And finally, the resulting code block would/could look like an include file. Which is how i got to asking about "class" vs "include as".


Yep. When Rob first implemented the "include as", it was possible to do multiple includes under different namespaces, and have separate instances of a variable. That didn't last long, he quickly "fixed" it - presumably due to side effects (he didn't share). If it had been combined with an improved type() implementation, as you point out, Euphoria would have had classes decades ago.

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu